v1

package
v0.0.13-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 7 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 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

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.

func NewAgents

func NewAgents(cfg Config) (openai.BetaAgentService, error)

NewAgents exposes the complete pinned Agents API using the same isolated transport.

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
}

Jump to

Keyboard shortcuts

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