Documentation
¶
Index ¶
- Constants
- func AgentAction(action string) bool
- func AgentActions() []string
- func HTTPAction(action string) bool
- func HTTPOnlyAction(action string) bool
- func PublicAction(action string) bool
- func PublicActions() []string
- func RealtimeWSClientRequestAction(action string) bool
- func WSStreamOnlyAction(action string) bool
- type ActionAuth
- type ActionContractDocument
- type ActionContractSpec
- type ActionFieldSchema
- type ActionPresenceSchema
- type ActionSchema
- type ActionSpec
- type ActionTransport
Constants ¶
View Source
const ActionContractSchemaVersion = 1
View Source
const RealtimeWSTicketAction = "realtime.ws_ticket.create"
Variables ¶
This section is empty.
Functions ¶
func AgentAction ¶
func AgentActions ¶
func AgentActions() []string
func HTTPAction ¶
func HTTPOnlyAction ¶
func PublicAction ¶
func PublicActions ¶
func PublicActions() []string
func WSStreamOnlyAction ¶
Types ¶
type ActionAuth ¶
type ActionAuth string
const ( ActionAuthPublic ActionAuth = "public" ActionAuthOwner ActionAuth = "owner" ActionAuthAgent ActionAuth = "agent" )
type ActionContractDocument ¶
type ActionContractDocument struct {
SchemaVersion int `json:"schema_version"`
GeneratedFrom string `json:"generated_from"`
Actions []ActionContractSpec `json:"actions"`
}
func ActionContract ¶
func ActionContract() ActionContractDocument
type ActionContractSpec ¶
type ActionContractSpec struct {
Name string `json:"name"`
Auth string `json:"auth"`
Transport string `json:"transport"`
Schema *ActionSchema `json:"schema,omitempty"`
}
type ActionFieldSchema ¶ added in v1.1.3
type ActionFieldSchema struct {
Type string `json:"type"`
Required bool `json:"required,omitempty"`
WriteOnly bool `json:"write_only,omitempty"`
Properties map[string]ActionFieldSchema `json:"properties,omitempty"`
Items *ActionFieldSchema `json:"items,omitempty"`
Presence *ActionPresenceSchema `json:"presence,omitempty"`
}
type ActionPresenceSchema ¶ added in v1.1.3
type ActionSchema ¶ added in v1.1.3
type ActionSchema struct {
Request map[string]ActionFieldSchema `json:"request,omitempty"`
Response map[string]ActionFieldSchema `json:"response,omitempty"`
}
ActionSchema is intentionally additive: existing actions retain their compact metadata while actions with presence-sensitive fields can publish a machine-readable request/response shape.
type ActionSpec ¶
type ActionSpec struct {
Name string
Auth ActionAuth
Transport ActionTransport
Schema *ActionSchema
}
func ActionSpecFor ¶
func ActionSpecFor(action string) (ActionSpec, bool)
func ActionSpecs ¶
func ActionSpecs() []ActionSpec
type ActionTransport ¶
type ActionTransport string
const ( ActionTransportHTTPOnly ActionTransport = "http_only" ActionTransportHTTPAndWS ActionTransport = "http_and_ws_request" ActionTransportWSStreamOnly ActionTransport = "ws_stream_only" ActionTransportInternalOnly ActionTransport = "internal_only" )
Source Files
¶
- action_contract.go
- actions.go
- agent_chat_schema.go
- agent_config_action_schema.go
- agent_conversation_schema.go
- agent_core_action_schema.go
- execution_v2_schema.go
- image_tools_action_schema.go
- memory_action_schema.go
- model_catalog_action_schema.go
- model_profile_action_schema.go
- release_action_schema.go
- static_site_action_schema.go
- text_tools_action_schema.go
- voice_action_schema.go
- web_search_action_schema.go
Click to show internal directories.
Click to hide internal directories.