Documentation
¶
Overview ¶
Package api provides Forge-style HTTP handlers for the Cortex agent system.
Index ¶
- type A2AConversationResponse
- type API
- type ActionReq
- type AgentInboxRequest
- type AgentInboxResponse
- type AgentOverrides
- type CancelRunRequest
- type ClearConversationRequest
- type CloneAgentRequest
- type ClonePersonaRequest
- type CountSessionsRequest
- type CountSessionsResponse
- type CreateAgentRequest
- type CreateBehaviorRequest
- type CreateOrchestrationRequest
- type CreatePersonaRequest
- type CreateSessionRequest
- type CreateSkillRequest
- type CreateTraitRequest
- type DeleteAgentRequest
- type DeleteBehaviorRequest
- type DeleteOrchestrationRequest
- type DeletePersonaRequest
- type DeleteSessionRequest
- type DeleteSkillRequest
- type DeleteTraitRequest
- type DimensionReq
- type GetA2AConversationRequest
- type GetAgentRequest
- type GetBehaviorRequest
- type GetConversationRequest
- type GetConversationResponse
- type GetOrchestrationRequest
- type GetOrchestrationRunRequest
- type GetPersonaRequest
- type GetRunRequest
- type GetSessionRequest
- type GetSkillRequest
- type GetToolSchemaRequest
- type GetTraitRequest
- type InfluenceReq
- type KnowledgeRefReq
- type ListA2AConversationsRequest
- type ListA2AConversationsResponse
- type ListAgentsRequest
- type ListAgentsResponse
- type ListBehaviorsRequest
- type ListBehaviorsResponse
- type ListCheckpointsRequest
- type ListCheckpointsResponse
- type ListOrchestrationRunsRequest
- type ListOrchestrationRunsResponse
- type ListOrchestrationsRequest
- type ListOrchestrationsResponse
- type ListPersonasRequest
- type ListPersonasResponse
- type ListRunsRequest
- type ListRunsResponse
- type ListSessionsRequest
- type ListSessionsResponse
- type ListSkillsRequest
- type ListSkillsResponse
- type ListToolsRequest
- type ListToolsResponse
- type ListTraitsRequest
- type ListTraitsResponse
- type Option
- type PlanningDetailRequest
- type PlanningListRequest
- type PreviewPromptRequest
- type PreviewPromptResponse
- type ReplayRunRequest
- type ReplayStreamRequest
- type ResolveCheckpointRequest
- type ResultContentRequest
- type RunAgentRequest
- type RunAgentResponse
- type RunOrchestrationRequest
- type RunOrchestrationResponse
- type SendMessageRequest
- type SkillAssignmentReq
- type StreamAgentRequest
- type StreamEvent
- type ToolBindingReq
- type TraitAssignmentReq
- type TriggerReq
- type UpdateAgentRequest
- type UpdateBehaviorRequest
- type UpdateConfigRequest
- type UpdateOrchestrationRequest
- type UpdatePersonaRequest
- type UpdateSessionRequest
- type UpdateSkillRequest
- type UpdateTraitRequest
- type VerificationFailureResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A2AConversationResponse ¶
type A2AConversationResponse struct {
Conversation *a2a.Conversation `json:"conversation"`
Messages []*a2a.Envelope `json:"messages"`
}
A2AConversationResponse is one messaging conversation with its transcript, oldest message first.
type API ¶
type API struct {
// contains filtered or unexported fields
}
API wires all Forge-style HTTP handlers together for the Cortex system.
type ActionReq ¶
type ActionReq struct {
Type string `json:"type"`
Target string `json:"target,omitempty"`
Value any `json:"value,omitempty"`
}
ActionReq is the request representation of a behavior action.
type AgentInboxRequest ¶
type AgentInboxRequest struct {
Name string `path:"name" description:"Agent name"`
ConversationID string `query:"conversation_id" description:"Only messages on this conversation"`
IncludeRead bool `query:"include_read" description:"Include messages already read (default: unread only)"`
Limit int `query:"limit" description:"Max results (default: 50)"`
}
AgentInboxRequest reads one agent's delivered messages.
type AgentInboxResponse ¶
AgentInboxResponse is what an agent has waiting for it.
type AgentOverrides ¶
type AgentOverrides struct {
Model string `json:"model,omitempty" description:"Override LLM model"`
Temperature *float64 `json:"temperature,omitempty" description:"Override temperature"`
MaxSteps int `json:"max_steps,omitempty" description:"Override max steps"`
MaxTokens int `json:"max_tokens,omitempty" description:"Override max tokens"`
ReasoningLoop string `json:"reasoning_loop,omitempty" description:"Override reasoning loop"`
SystemPrompt string `json:"system_prompt,omitempty" description:"Override system prompt"`
PersonaRef string `json:"persona_ref,omitempty" description:"Override persona reference"`
InlineSkills []string `json:"inline_skills,omitempty" description:"Override inline skills"`
InlineTraits []string `json:"inline_traits,omitempty" description:"Override inline traits"`
InlineBehaviors []string `json:"inline_behaviors,omitempty" description:"Override inline behaviors"`
Tools []string `json:"tools,omitempty" description:"Override tool list"`
}
AgentOverrides allows overriding agent configuration for a single run.
type CancelRunRequest ¶
type CancelRunRequest struct {
RunID string `path:"id" description:"Run ID"`
}
CancelRunRequest is the request for cancelling a run.
type ClearConversationRequest ¶
type ClearConversationRequest struct {
Name string `path:"name" description:"Agent name"`
SessionID string `query:"session_id" description:"Session ID; defaults to the agent's default session for the caller's scope"`
}
ClearConversationRequest is the request for clearing conversation history.
type CloneAgentRequest ¶
type CloneAgentRequest struct {
Name string `path:"name" description:"Source agent name"`
NewName string `json:"new_name,omitempty" description:"Name for the clone; auto-generated if omitted"`
}
CloneAgentRequest is the request for cloning an agent.
type ClonePersonaRequest ¶
type ClonePersonaRequest struct {
Name string `path:"name" description:"Source persona name"`
NewName string `json:"new_name,omitempty" description:"Name for the clone; auto-generated if omitted"`
}
ClonePersonaRequest is the request for cloning a persona.
type CountSessionsRequest ¶
type CountSessionsRequest struct {
Name string `path:"name" description:"Agent name"`
}
CountSessionsRequest is the request for counting an agent's sessions.
type CountSessionsResponse ¶
type CountSessionsResponse struct {
Count int64 `json:"count"`
}
CountSessionsResponse wraps a session count.
type CreateAgentRequest ¶
type CreateAgentRequest struct {
Name string `json:"name" description:"Unique agent name"`
Description string `json:"description,omitempty"`
SystemPrompt string `json:"system_prompt" description:"Agent system prompt"`
Model string `json:"model,omitempty" description:"LLM model (default: smart)"`
Tools []string `json:"tools,omitempty" description:"Tool names (flat mode)"`
MaxSteps int `json:"max_steps,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
ReasoningLoop string `json:"reasoning_loop,omitempty"`
PersonaRef string `json:"persona_ref,omitempty" description:"Persona name reference"`
InlineSkills []string `json:"inline_skills,omitempty"`
InlineTraits []string `json:"inline_traits,omitempty"`
InlineBehaviors []string `json:"inline_behaviors,omitempty"`
Guardrails map[string]any `json:"guardrails,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreateAgentRequest is the request body for creating an agent.
type CreateBehaviorRequest ¶
type CreateBehaviorRequest struct {
Name string `json:"name" description:"Unique behavior name"`
Description string `json:"description,omitempty"`
Triggers []TriggerReq `json:"triggers,omitempty"`
Actions []ActionReq `json:"actions,omitempty"`
Priority int `json:"priority,omitempty"`
RequiresSkill string `json:"requires_skill,omitempty"`
RequiresTrait string `json:"requires_trait,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreateBehaviorRequest is the request body for creating a behavior.
type CreateOrchestrationRequest ¶
type CreateOrchestrationRequest struct {
Name string `json:"name" description:"Unique orchestration name"`
Description string `json:"description,omitempty"`
Strategy string `json:"strategy" description:"sequential|parallel|router|hierarchical|debate"`
Participants []orchestration.Participant `json:"participants" description:"Agents taking part, with optional roles"`
Settings orchestration.Settings `json:"settings,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreateOrchestrationRequest is the request body for creating an orchestration config.
type CreatePersonaRequest ¶
type CreatePersonaRequest struct {
Name string `json:"name" description:"Unique persona name"`
Description string `json:"description,omitempty"`
Identity string `json:"identity" description:"Self-description for system prompt"`
Skills []SkillAssignmentReq `json:"skills,omitempty"`
Traits []TraitAssignmentReq `json:"traits,omitempty"`
Behaviors []string `json:"behaviors,omitempty"`
CognitiveStyle map[string]any `json:"cognitive_style,omitempty"`
CommunicationStyle map[string]any `json:"communication_style,omitempty"`
Perception map[string]any `json:"perception,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreatePersonaRequest is the request body for creating a persona.
type CreateSessionRequest ¶
type CreateSessionRequest struct {
Name string `path:"name" description:"Agent name"`
Title string `json:"title,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreateSessionRequest is the request body for creating a session.
type CreateSkillRequest ¶
type CreateSkillRequest struct {
Name string `json:"name" description:"Unique skill name"`
Description string `json:"description,omitempty"`
Tools []ToolBindingReq `json:"tools,omitempty" description:"Tool bindings with mastery"`
Knowledge []KnowledgeRefReq `json:"knowledge,omitempty" description:"Knowledge sources"`
SystemPromptFragment string `json:"system_prompt_fragment,omitempty"`
Dependencies []string `json:"dependencies,omitempty"`
DefaultProficiency string `json:"default_proficiency,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreateSkillRequest is the request body for creating a skill.
type CreateTraitRequest ¶
type CreateTraitRequest struct {
Name string `json:"name" description:"Unique trait name"`
Description string `json:"description,omitempty"`
Dimensions []DimensionReq `json:"dimensions,omitempty"`
Influences []InfluenceReq `json:"influences,omitempty"`
Category string `json:"category,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
CreateTraitRequest is the request body for creating a trait.
type DeleteAgentRequest ¶
type DeleteAgentRequest struct {
Name string `path:"name" description:"Agent name"`
}
DeleteAgentRequest is the request for deleting an agent.
type DeleteBehaviorRequest ¶
type DeleteBehaviorRequest struct {
Name string `path:"name" description:"Behavior name"`
}
DeleteBehaviorRequest is the request for deleting a behavior.
type DeleteOrchestrationRequest ¶
type DeleteOrchestrationRequest struct {
Name string `path:"name" description:"Orchestration name"`
}
DeleteOrchestrationRequest addresses an orchestration config by name.
type DeletePersonaRequest ¶
type DeletePersonaRequest struct {
Name string `path:"name" description:"Persona name"`
}
DeletePersonaRequest is the request for deleting a persona.
type DeleteSessionRequest ¶
type DeleteSessionRequest struct {
Name string `path:"name" description:"Agent name"`
SessionID string `path:"id" description:"Session ID"`
}
DeleteSessionRequest is the request for deleting a session.
type DeleteSkillRequest ¶
type DeleteSkillRequest struct {
Name string `path:"name" description:"Skill name"`
}
DeleteSkillRequest is the request for deleting a skill.
type DeleteTraitRequest ¶
type DeleteTraitRequest struct {
Name string `path:"name" description:"Trait name"`
}
DeleteTraitRequest is the request for deleting a trait.
type DimensionReq ¶
type DimensionReq struct {
Name string `json:"name"`
LowLabel string `json:"low_label"`
HighLabel string `json:"high_label"`
Value float64 `json:"value"`
}
DimensionReq is the request representation of a personality dimension.
type GetA2AConversationRequest ¶
type GetA2AConversationRequest struct {
ID string `path:"id" description:"Conversation ID"`
}
GetA2AConversationRequest addresses one messaging conversation by ID.
type GetAgentRequest ¶
type GetAgentRequest struct {
Name string `path:"name" description:"Agent name"`
}
GetAgentRequest is the request for getting an agent by name.
type GetBehaviorRequest ¶
type GetBehaviorRequest struct {
Name string `path:"name" description:"Behavior name"`
}
GetBehaviorRequest is the request for getting a behavior by name.
type GetConversationRequest ¶
type GetConversationRequest struct {
Name string `path:"name" description:"Agent name"`
Limit int `query:"limit"`
SessionID string `query:"session_id" description:"Session ID; defaults to the agent's default session for the caller's scope"`
}
GetConversationRequest is the request for getting conversation history.
type GetConversationResponse ¶
GetConversationResponse wraps conversation messages.
type GetOrchestrationRequest ¶
type GetOrchestrationRequest struct {
Name string `path:"name" description:"Orchestration name"`
}
GetOrchestrationRequest addresses an orchestration config by name.
type GetOrchestrationRunRequest ¶
type GetOrchestrationRunRequest struct {
ID string `path:"id" description:"Orchestration run ID"`
}
GetOrchestrationRunRequest addresses an orchestration run by ID.
type GetPersonaRequest ¶
type GetPersonaRequest struct {
Name string `path:"name" description:"Persona name"`
}
GetPersonaRequest is the request for getting a persona by name.
type GetRunRequest ¶
type GetRunRequest struct {
RunID string `path:"id" description:"Run ID"`
}
GetRunRequest is the request for getting a run by ID.
type GetSessionRequest ¶
type GetSessionRequest struct {
Name string `path:"name" description:"Agent name"`
SessionID string `path:"id" description:"Session ID"`
}
GetSessionRequest is the request for getting a session by ID.
type GetSkillRequest ¶
type GetSkillRequest struct {
Name string `path:"name" description:"Skill name"`
}
GetSkillRequest is the request for getting a skill by name.
type GetToolSchemaRequest ¶
type GetToolSchemaRequest struct {
Name string `path:"name" description:"Tool name"`
}
GetToolSchemaRequest is the request for getting a tool's schema.
type GetTraitRequest ¶
type GetTraitRequest struct {
Name string `path:"name" description:"Trait name"`
}
GetTraitRequest is the request for getting a trait by name.
type InfluenceReq ¶
type InfluenceReq struct {
Target string `json:"target"`
Value any `json:"value"`
Condition string `json:"condition,omitempty"`
Weight float64 `json:"weight,omitempty"`
}
InfluenceReq is the request representation of a trait influence.
type KnowledgeRefReq ¶
type KnowledgeRefReq struct {
Source string `json:"source"`
InjectMode string `json:"inject_mode,omitempty"`
Priority int `json:"priority,omitempty"`
}
KnowledgeRefReq is the request representation of a knowledge reference.
type ListA2AConversationsRequest ¶
type ListA2AConversationsRequest struct {
Status string `query:"status" description:"Filter by status: open|closed|expired"`
Limit int `query:"limit" description:"Max results (default: 50)"`
Offset int `query:"offset" description:"Results to skip"`
}
ListA2AConversationsRequest paginates and filters messaging conversations. The a2a prefix is not decoration: "conversation" already means an agent's chat history elsewhere in this API, and these are the other kind.
type ListA2AConversationsResponse ¶
type ListA2AConversationsResponse struct {
Items []*a2a.Conversation `json:"items"`
}
ListA2AConversationsResponse is a page of messaging conversations.
type ListAgentsRequest ¶
type ListAgentsRequest struct {
Limit int `query:"limit" description:"Max results (default: 50)"`
Offset int `query:"offset" description:"Results to skip"`
}
ListAgentsRequest is the request for listing agents.
type ListAgentsResponse ¶
ListAgentsResponse wraps a list of agents.
type ListBehaviorsRequest ¶
ListBehaviorsRequest is the request for listing behaviors.
type ListBehaviorsResponse ¶
ListBehaviorsResponse wraps a list of behaviors.
type ListCheckpointsRequest ¶
ListCheckpointsRequest is the request for listing pending checkpoints.
type ListCheckpointsResponse ¶
type ListCheckpointsResponse struct {
Items []*checkpoint.Checkpoint `json:"items"`
}
ListCheckpointsResponse wraps a list of checkpoints.
type ListOrchestrationRunsRequest ¶
type ListOrchestrationRunsRequest struct {
Status string `query:"status" description:"Filter by status: running|waiting|completed|failed"`
Limit int `query:"limit"`
Offset int `query:"offset"`
}
ListOrchestrationRunsRequest paginates and filters orchestration runs.
type ListOrchestrationRunsResponse ¶
type ListOrchestrationRunsResponse struct {
Items []*orchestration.Run `json:"items"`
}
ListOrchestrationRunsResponse wraps a list of orchestration runs.
type ListOrchestrationsRequest ¶
type ListOrchestrationsRequest struct {
Limit int `query:"limit" description:"Max results (default: 50)"`
Offset int `query:"offset" description:"Results to skip"`
}
ListOrchestrationsRequest paginates orchestration configs.
type ListOrchestrationsResponse ¶
type ListOrchestrationsResponse struct {
Items []*orchestration.Config `json:"items"`
}
ListOrchestrationsResponse wraps a list of orchestration configs.
type ListPersonasRequest ¶
ListPersonasRequest is the request for listing personas.
type ListPersonasResponse ¶
ListPersonasResponse wraps a list of personas.
type ListRunsRequest ¶
ListRunsRequest is the request for listing runs.
type ListRunsResponse ¶
ListRunsResponse wraps a list of runs.
type ListSessionsRequest ¶
type ListSessionsRequest struct {
Name string `path:"name" description:"Agent name"`
Limit int `query:"limit"`
Offset int `query:"offset"`
}
ListSessionsRequest is the request for listing an agent's sessions.
type ListSessionsResponse ¶
ListSessionsResponse wraps a list of sessions.
type ListSkillsRequest ¶
ListSkillsRequest is the request for listing skills.
type ListSkillsResponse ¶
ListSkillsResponse wraps a list of skills.
type ListToolsRequest ¶
type ListToolsRequest struct{}
ListToolsRequest is the request for listing available tools.
type ListToolsResponse ¶
ListToolsResponse wraps a list of tools.
type ListTraitsRequest ¶
type ListTraitsRequest struct {
Limit int `query:"limit"`
Offset int `query:"offset"`
Category string `query:"category" description:"Filter by category"`
}
ListTraitsRequest is the request for listing traits.
type ListTraitsResponse ¶
ListTraitsResponse wraps a list of traits.
type Option ¶
type Option func(*API)
Option configures optional API services without starting background work.
func WithOptimization ¶
func WithOptimization(value *optimization.Optimizer) Option
WithOptimization exposes scoped operator workflows through the supplied service. The host supplies the optimizer's authenticated caller and current authorizer.
func WithPlanning ¶
func WithPlanning(operator *coordination.PlanningOperator) Option
WithPlanning installs the shared current-authority team operator service.
type PlanningDetailRequest ¶
type PlanningDetailRequest struct {
ID string `path:"id"`
}
PlanningDetailRequest selects one immutable graph's current projection.
type PlanningListRequest ¶
type PlanningListRequest struct {
After string `query:"after" optional:"true"`
Limit int `query:"limit" optional:"true"`
}
PlanningListRequest selects bounded exact-scope plan metadata.
type PreviewPromptRequest ¶
type PreviewPromptRequest struct {
Name string `path:"name" description:"Agent name"`
}
PreviewPromptRequest is the request for previewing the computed system prompt.
type PreviewPromptResponse ¶
type PreviewPromptResponse struct {
Prompt string `json:"prompt"`
}
PreviewPromptResponse wraps the computed system prompt preview.
type ReplayRunRequest ¶
type ReplayRunRequest struct {
RunID string `path:"id" description:"Run ID"`
After string `query:"after" optional:"true" description:"Opaque cursor from the previous replay page"`
Limit int `query:"limit" optional:"true" description:"Page size from 1 to 128; zero uses 128"`
}
ReplayRunRequest reads durable metadata with a run-bound cursor.
type ReplayStreamRequest ¶
type ReplayStreamRequest struct {
ReplayRunRequest
LastEventID string `header:"Last-Event-ID" optional:"true" description:"Resume cursor from the last complete SSE page"`
}
ReplayStreamRequest resumes metadata through SSE. Last-Event-ID takes precedence over the initial query cursor when a browser reconnects to the same URL.
type ResolveCheckpointRequest ¶
type ResolveCheckpointRequest struct {
CheckpointID string `path:"id" description:"Checkpoint ID"`
Decision string `json:"decision" description:"approved or rejected"`
DecidedBy string `json:"decided_by,omitempty"`
// Reason is what a rejection puts on the failed run, so whoever finds
// the run later reads why a person stopped it rather than a bare
// "rejected".
Reason string `json:"reason,omitempty" description:"Why the decision was made; recorded on the run when rejecting"`
}
ResolveCheckpointRequest is the request for resolving a checkpoint.
type ResultContentRequest ¶
type ResultContentRequest struct {
RunID string `path:"id" description:"Run ID"`
ResultID string `path:"result_id" description:"Committed result ID"`
}
ResultContentRequest selects a committed answer through current host policy.
type RunAgentRequest ¶
type RunAgentRequest struct {
Name string `path:"name" description:"Agent name"`
Input string `json:"input" description:"User input"`
Overrides *AgentOverrides `json:"overrides,omitempty" description:"Configuration overrides"`
}
RunAgentRequest is the request body for running an agent.
type RunAgentResponse ¶
type RunAgentResponse struct {
StopReason string `json:"stop_reason,omitempty"`
VerificationStatus string `json:"verification_status"`
PublicationStatus string `json:"publication_status"`
ResultRef string `json:"result_ref,omitempty"`
RunID string `json:"run_id"`
Output string `json:"output"`
State string `json:"state"`
StepCount int `json:"step_count"`
TokensUsed int `json:"tokens_used"`
DurationMs int64 `json:"duration_ms"`
}
RunAgentResponse wraps the result of a synchronous agent run.
type RunOrchestrationRequest ¶
type RunOrchestrationRequest struct {
Name string `path:"name" description:"Orchestration name"`
Input string `json:"input" description:"Initial input for the orchestration"`
}
RunOrchestrationRequest runs a stored orchestration by name.
type RunOrchestrationResponse ¶
type RunOrchestrationResponse struct {
RunID string `json:"run_id"`
Status string `json:"status"`
Strategy string `json:"strategy"`
Output string `json:"output"`
DurationMs int64 `json:"duration_ms"`
}
RunOrchestrationResponse summarizes a completed orchestration run.
type SendMessageRequest ¶
type SendMessageRequest struct {
Name string `path:"name" description:"Recipient agent name"`
From string `json:"from" description:"Sender name, as it should appear to the recipient"`
Content string `json:"content" description:"The message body"`
Performative string `json:"performative,omitempty" description:"FIPA-ACL speech act (default: inform)"`
ConversationID string `json:"conversation_id,omitempty" description:"Continue an existing conversation"`
InReplyTo string `json:"in_reply_to,omitempty" description:"Reply-with token of the ask this answers"`
Ontology string `json:"ontology,omitempty" description:"Optional subject-matter label"`
}
SendMessageRequest injects a message from outside a run.
InReplyTo is what makes this more than an inbox write: a reply carrying the reply-with token of a waiting ask resumes the run behind it, which is how a person answers an agent that asked a question.
type SkillAssignmentReq ¶
type SkillAssignmentReq struct {
SkillName string `json:"skill_name"`
Proficiency string `json:"proficiency,omitempty"`
}
SkillAssignmentReq is the request representation of a skill assignment.
type StreamAgentRequest ¶
type StreamAgentRequest struct {
Name string `path:"name" description:"Agent name"`
Input string `json:"input" description:"User input"`
Overrides *AgentOverrides `json:"overrides,omitempty" description:"Configuration overrides"`
}
StreamAgentRequest is the request body for streaming an agent run.
type StreamEvent ¶
StreamEvent represents a single SSE event during agent streaming.
type ToolBindingReq ¶
type ToolBindingReq struct {
ToolName string `json:"tool_name"`
Mastery string `json:"mastery,omitempty"`
Guidance string `json:"guidance,omitempty"`
PreferWhen string `json:"prefer_when,omitempty"`
}
ToolBindingReq is the request representation of a tool binding.
type TraitAssignmentReq ¶
type TraitAssignmentReq struct {
TraitName string `json:"trait_name"`
DimensionValues map[string]float64 `json:"dimension_values,omitempty"`
}
TraitAssignmentReq is the request representation of a trait assignment.
type TriggerReq ¶
TriggerReq is the request representation of a behavior trigger.
type UpdateAgentRequest ¶
type UpdateAgentRequest struct {
Name string `path:"name" description:"Agent name"`
Description string `json:"description,omitempty"`
SystemPrompt string `json:"system_prompt,omitempty"`
Model string `json:"model,omitempty"`
Tools []string `json:"tools,omitempty"`
MaxSteps int `json:"max_steps,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
ReasoningLoop string `json:"reasoning_loop,omitempty"`
PersonaRef string `json:"persona_ref,omitempty"`
InlineSkills []string `json:"inline_skills,omitempty"`
InlineTraits []string `json:"inline_traits,omitempty"`
InlineBehaviors []string `json:"inline_behaviors,omitempty"`
Guardrails map[string]any `json:"guardrails,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdateAgentRequest is the request body for updating an agent.
type UpdateBehaviorRequest ¶
type UpdateBehaviorRequest struct {
Name string `path:"name" description:"Behavior name"`
Description string `json:"description,omitempty"`
Triggers []TriggerReq `json:"triggers,omitempty"`
Actions []ActionReq `json:"actions,omitempty"`
Priority int `json:"priority,omitempty"`
RequiresSkill string `json:"requires_skill,omitempty"`
RequiresTrait string `json:"requires_trait,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdateBehaviorRequest is the request body for updating a behavior.
type UpdateConfigRequest ¶
type UpdateConfigRequest struct {
DefaultModel string `json:"default_model,omitempty"`
DefaultMaxSteps int `json:"default_max_steps,omitempty"`
DefaultMaxTokens int `json:"default_max_tokens,omitempty"`
DefaultTemperature float64 `json:"default_temperature,omitempty"`
DefaultReasoningLoop string `json:"default_reasoning_loop,omitempty"`
}
UpdateConfigRequest is the request body for updating engine configuration.
type UpdateOrchestrationRequest ¶
type UpdateOrchestrationRequest struct {
Name string `path:"name" description:"Orchestration name"`
Description string `json:"description,omitempty"`
Strategy string `json:"strategy,omitempty"`
Participants []orchestration.Participant `json:"participants,omitempty"`
Settings *orchestration.Settings `json:"settings,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdateOrchestrationRequest is the request body for updating an orchestration config.
type UpdatePersonaRequest ¶
type UpdatePersonaRequest struct {
Name string `path:"name" description:"Persona name"`
Description string `json:"description,omitempty"`
Identity string `json:"identity,omitempty"`
Skills []SkillAssignmentReq `json:"skills,omitempty"`
Traits []TraitAssignmentReq `json:"traits,omitempty"`
Behaviors []string `json:"behaviors,omitempty"`
CognitiveStyle map[string]any `json:"cognitive_style,omitempty"`
CommunicationStyle map[string]any `json:"communication_style,omitempty"`
Perception map[string]any `json:"perception,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdatePersonaRequest is the request body for updating a persona.
type UpdateSessionRequest ¶
type UpdateSessionRequest struct {
Name string `path:"name" description:"Agent name"`
SessionID string `path:"id" description:"Session ID"`
Title string `json:"title,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdateSessionRequest is the request body for updating a session.
type UpdateSkillRequest ¶
type UpdateSkillRequest struct {
Name string `path:"name" description:"Skill name"`
Description string `json:"description,omitempty"`
Tools []ToolBindingReq `json:"tools,omitempty"`
Knowledge []KnowledgeRefReq `json:"knowledge,omitempty"`
SystemPromptFragment string `json:"system_prompt_fragment,omitempty"`
Dependencies []string `json:"dependencies,omitempty"`
DefaultProficiency string `json:"default_proficiency,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdateSkillRequest is the request body for updating a skill.
type UpdateTraitRequest ¶
type UpdateTraitRequest struct {
Name string `path:"name" description:"Trait name"`
Description string `json:"description,omitempty"`
Dimensions []DimensionReq `json:"dimensions,omitempty"`
Influences []InfluenceReq `json:"influences,omitempty"`
Category string `json:"category,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
UpdateTraitRequest is the request body for updating a trait.
type VerificationFailureResponse ¶
type VerificationFailureResponse struct {
Error string `json:"error"`
Code int `json:"code"`
Details *run.VerificationFailure `json:"details,omitempty"`
}
VerificationFailureResponse carries safe recovery metadata for a failed run. Details is optional because other conflicts can share the HTTP status code.
Source Files
¶
- a2a_handler.go
- agent_handler.go
- api.go
- behavior_handler.go
- checkpoint_handler.go
- config_handler.go
- helpers.go
- memory_handler.go
- optimization_activations.go
- optimization_commands.go
- optimization_handler.go
- optimization_lessons.go
- orchestration_handler.go
- persona_handler.go
- planning_handler.go
- requests.go
- responses.go
- result_content.go
- run_handler.go
- run_replay.go
- run_replay_stream.go
- session_handler.go
- skill_handler.go
- tool_handler.go
- trait_handler.go
- verification_failure.go