Documentation
¶
Index ¶
- Constants
- Variables
- func Register(reg *adapter.Registry, client *http.Client, sink CredentialSink, ...) error
- type Adapter
- type CodexModel
- type CodexRateLimitObservation
- type ControlPlaneSink
- type CredentialPersistResult
- type CredentialSink
- type ModelDiscovery
- type Options
- type SnapshotRefreshTrigger
Constants ¶
View Source
const Name = "openai-codex"
Variables ¶
View Source
var ( ErrSnapshotRefreshRequired = errors.New("codex snapshot refresh required") ErrCredentialPersistenceDegraded = errors.New("codex credential persistence degraded") )
Functions ¶
func Register ¶
func Register(reg *adapter.Registry, client *http.Client, sink CredentialSink, refresh SnapshotRefreshTrigger, options Options) error
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func New ¶
func New(client *http.Client, sink CredentialSink, refresh SnapshotRefreshTrigger, options Options) *Adapter
type CodexModel ¶
type CodexModel struct {
Slug string `json:"slug"`
DisplayName string `json:"display_name,omitempty"`
Description string `json:"description,omitempty"`
Visibility string `json:"visibility,omitempty"`
SupportedInAPI bool `json:"supported_in_api"`
ContextWindow int64 `json:"context_window,omitempty"`
WebSearchToolType string `json:"web_search_tool_type,omitempty"`
SupportsSearchTool *bool `json:"supports_search_tool,omitempty"`
InputModalities []string `json:"input_modalities,omitempty"`
ToolMode string `json:"tool_mode,omitempty"`
SupportsParallelCalls *bool `json:"supports_parallel_tool_calls,omitempty"`
AvailableInPlans []string `json:"available_in_plans,omitempty"`
Capabilities json.RawMessage `json:"capabilities,omitempty"`
}
type ControlPlaneSink ¶
type ControlPlaneSink struct{ Client *controlplane.Client }
func (ControlPlaneSink) Persist ¶
func (s ControlPlaneSink) Persist(ctx context.Context, accountID string, expectedRevision int64, credential config.Credential) (CredentialPersistResult, error)
type CredentialPersistResult ¶
type CredentialSink ¶
type CredentialSink interface {
Persist(context.Context, string, int64, config.Credential) (CredentialPersistResult, error)
}
type ModelDiscovery ¶
type ModelDiscovery struct {
Models []CodexModel `json:"models"`
}
type SnapshotRefreshTrigger ¶
type SnapshotRefreshTrigger interface {
TriggerSnapshotRefresh(reason string)
}
Click to show internal directories.
Click to hide internal directories.