setup

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package setup shares OTLP env parsing and base agent options for the config/ and objects/ examples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseAgentOptions

func BaseAgentOptions(cfg *excfg.Config, llm interfaces.LLMClient) []agent.Option

BaseAgentOptions returns shared [agent.Option]s for both examples (identity, Temporal, LLM, logger).

func UserPrompt

func UserPrompt() string

UserPrompt returns command-line text after the program name, or a default line if empty.

Types

type OTLP

type OTLP struct {
	Endpoint string
	// AgentProto is used with [agent.ObservabilityConfig].
	AgentProto agent.OTLPProtocol
	// ObsProto is used with [observability.Option] when building tracer, metrics, and logs manually.
	ObsProto observability.Protocol
	Insecure bool
}

OTLP holds values from OTEL_EXPORTER_OTLP_ENDPOINT, OTLP_PROTOCOL, OTLP_INSECURE.

func MustParseOTLP

func MustParseOTLP() OTLP

MustParseOTLP reads OTLP-related environment variables and exits on missing endpoint or bad protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL