Documentation
¶
Overview ¶
Package openai provides a model.Client implementation backed by the OpenAI Responses API. It translates loom-mcp requests into Responses API calls and maps responses back to the generic planner structures.
Package openai wires OpenAI model clients into loom-mcp planners.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements model.Client via the OpenAI Responses API.
func NewFromAPIKey ¶
NewFromAPIKey constructs a client using the official openai-go HTTP client.
type Options ¶
type Options struct {
Client ResponseClient
DefaultModel string
}
Options configures the OpenAI adapter.
type ResponseClient ¶ added in v1.0.7
type ResponseClient interface {
New(ctx context.Context, body responses.ResponseNewParams, opts ...option.RequestOption) (*responses.Response, error)
}
ResponseClient captures the subset of the official OpenAI client used by the adapter.
Click to show internal directories.
Click to hide internal directories.