Documentation
¶
Overview ¶
Package v1 configures the official Go SDK for the OpenAgentCore Agents API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) (openai.BetaAgentSessionService, error)
New returns the official Session service. It does not load OpenAI environment credentials or switch Parsar's execution path. Callers use SDK types, pagination and *openai.Error directly, and supply Idempotency-Key for creation retries. SDK retries are disabled; an uncertain write can be retried with the same key.
Types ¶
type Config ¶
type Config struct {
// BaseURL includes the API prefix, for example https://agents.example/v1.
BaseURL string
APIKey string
// HTTPClient optionally supplies a trusted transport and timeout. The client
// is copied; its cookie jar and redirect policy are not used.
HTTPClient *http.Client
}