Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialView ¶
type CredentialView struct {
credentialmgr.ManagedCredential
ReadOnly bool `json:"read_only"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles Admin API requests under /admin/.
func NewHandler ¶
func NewHandler(agentGateway *gateway.AgentGateway, logger *zap.Logger, adminUser, adminPasswordHash string) *Handler
NewHandler constructs an admin Handler. logger may be nil (a no-op logger is used in that case).
type LLMApiHandlerTypeView ¶
type LLMApiHandlerTypeView struct {
LLMApiHandlerType string `json:"llm_api_handler_type"`
}
type ManagedConcreteModelView ¶
type ManagedConcreteModelView struct {
modelcatalog.ManagedModel
ProviderType string `json:"provider_type,omitempty"`
DisplayName string `json:"display_name,omitempty"`
Description string `json:"description,omitempty"`
Capabilities provider.ModelCapabilities `json:"capabilities,omitempty"`
SnapshotState modelcatalog.SnapshotStatus `json:"snapshot_status,omitempty"`
FetchedAt time.Time `json:"fetched_at,omitempty"`
LastError string `json:"last_error,omitempty"`
}
type ProviderTypeView ¶
type ProviderView ¶
type ProviderView struct {
provider.ProviderConfig
Source string `json:"source"`
ReadOnly bool `json:"read_only"`
}
type Route ¶
type Route struct {
Method string
Path string
Handler http.HandlerFunc
RequireAuth bool
}
Route defines an admin API route.
type RouteView ¶
type RouteView struct {
routepkg.AgentRoute
Source string `json:"source"`
ReadOnly bool `json:"read_only"`
}
func (*RouteView) UnmarshalJSON ¶
type VirtualKeyView ¶
type VirtualKeyView struct {
virtualkeypkg.VirtualKey
Source string `json:"source"`
ReadOnly bool `json:"read_only"`
}
Click to show internal directories.
Click to hide internal directories.