Documentation
¶
Overview ¶
Code generated from JSON schema. DO NOT EDIT.
Index ¶
- Constants
- type A2AError
- type A2ARequest
- type APIKeySecurityScheme
- type AgentCapabilities
- type AgentCard
- type AgentExtension
- type AgentInterface
- type AgentProvider
- type AgentSkill
- type Artifact
- type AuthorizationCodeOAuthFlow
- type CancelTaskRequest
- type CancelTaskResponse
- type CancelTaskSuccessResponse
- type ClientCredentialsOAuthFlow
- type ContentTypeNotSupportedError
- type DataPart
- type DeleteTaskPushNotificationConfigParams
- type DeleteTaskPushNotificationConfigRequest
- type DeleteTaskPushNotificationConfigResponse
- type DeleteTaskPushNotificationConfigSuccessResponse
- type FileBase
- type FileData
- type FilePart
- type FileWithBytes
- type FileWithUri
- type GetTaskPushNotificationConfigParams
- type GetTaskPushNotificationConfigRequest
- type GetTaskPushNotificationConfigResponse
- type GetTaskPushNotificationConfigSuccessResponse
- type GetTaskRequest
- type GetTaskResponse
- type GetTaskSuccessResponse
- type HTTPAuthSecurityScheme
- type ImplicitOAuthFlow
- type InternalError
- type InvalidAgentResponseError
- type InvalidParamsError
- type InvalidRequestError
- type JSONParseError
- type JSONRPCError
- type JSONRPCErrorResponse
- type JSONRPCMessage
- type JSONRPCRequest
- type JSONRPCResponse
- type JSONRPCSuccessResponse
- type ListTaskPushNotificationConfigParams
- type ListTaskPushNotificationConfigRequest
- type ListTaskPushNotificationConfigResponse
- type ListTaskPushNotificationConfigSuccessResponse
- type ListTasksRequest
- type ListTasksResponse
- type ListTasksSuccessResponse
- type Message
- type MessagePartKind
- type MessageSendConfiguration
- type MessageSendParams
- type MethodNotFoundError
- type OAuth2SecurityScheme
- type OAuthFlows
- type OpenIdConnectSecurityScheme
- type OptimizedMessagePart
- type Part
- type PartBase
- type PasswordOAuthFlow
- type PushNotificationAuthenticationInfo
- type PushNotificationConfig
- type PushNotificationNotSupportedError
- type SecurityScheme
- type SecuritySchemeBase
- type SendMessageRequest
- type SendMessageResponse
- type SendMessageSuccessResponse
- type SendStreamingMessageRequest
- type SendStreamingMessageResponse
- type SendStreamingMessageSuccessResponse
- type SetTaskPushNotificationConfigRequest
- type SetTaskPushNotificationConfigResponse
- type SetTaskPushNotificationConfigSuccessResponse
- type Task
- type TaskArtifactUpdateEvent
- type TaskIdParams
- type TaskList
- type TaskListParams
- type TaskNotCancelableError
- type TaskNotFoundError
- type TaskPushNotificationConfig
- type TaskQueryParams
- type TaskResubscriptionRequest
- type TaskState
- type TaskStatus
- type TaskStatusUpdateEvent
- type TextPart
- type UnsupportedOperationError
Constants ¶
const ( HealthStatusHealthy = "healthy" HealthStatusDegraded = "degraded" HealthStatusUnhealthy = "unhealthy" )
Health status constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeySecurityScheme ¶
type APIKeySecurityScheme struct {
Description *string `json:"description,omitempty"`
In string `json:"in"`
Name string `json:"name"`
Type string `json:"type"`
}
API Key security scheme.
type AgentCapabilities ¶
type AgentCapabilities struct {
Extensions []AgentExtension `json:"extensions,omitempty"`
PushNotifications *bool `json:"pushNotifications,omitempty"`
StateTransitionHistory *bool `json:"stateTransitionHistory,omitempty"`
Streaming *bool `json:"streaming,omitempty"`
}
Defines optional capabilities supported by an agent.
type AgentCard ¶
type AgentCard struct {
AdditionalInterfaces []AgentInterface `json:"additionalInterfaces,omitempty"`
Capabilities AgentCapabilities `json:"capabilities"`
DefaultInputModes []string `json:"defaultInputModes"`
DefaultOutputModes []string `json:"defaultOutputModes"`
Description string `json:"description"`
DocumentationURL *string `json:"documentationUrl,omitempty"`
IconURL *string `json:"iconUrl,omitempty"`
Name string `json:"name"`
PreferredTransport *string `json:"preferredTransport,omitempty"`
Provider *AgentProvider `json:"provider,omitempty"`
Security []map[string][]string `json:"security,omitempty"`
SecuritySchemes map[string]SecurityScheme `json:"securitySchemes,omitempty"`
Skills []AgentSkill `json:"skills"`
SupportsAuthenticatedExtendedCard *bool `json:"supportsAuthenticatedExtendedCard,omitempty"`
URL string `json:"url"`
Version string `json:"version"`
}
An AgentCard conveys key information: - Overall details (version, name, description, uses) - Skills: A set of capabilities the agent can perform - Default modalities/content types supported by the agent. - Authentication requirements
type AgentExtension ¶
type AgentExtension struct {
Description *string `json:"description,omitempty"`
Params map[string]interface{} `json:"params,omitempty"`
Required *bool `json:"required,omitempty"`
URI string `json:"uri"`
}
A declaration of an extension supported by an Agent.
type AgentInterface ¶
AgentInterface provides a declaration of a combination of the target url and the supported transport to interact with the agent.
type AgentProvider ¶
Represents the service provider of an agent.
type AgentSkill ¶
type AgentSkill struct {
Description string `json:"description"`
Examples []string `json:"examples,omitempty"`
ID string `json:"id"`
InputModes []string `json:"inputModes,omitempty"`
Name string `json:"name"`
OutputModes []string `json:"outputModes,omitempty"`
Tags []string `json:"tags"`
}
Represents a unit of capability that an agent can perform.
type Artifact ¶
type Artifact struct {
ArtifactID string `json:"artifactId"`
Description *string `json:"description,omitempty"`
Extensions []string `json:"extensions,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Name *string `json:"name,omitempty"`
Parts []Part `json:"parts"`
}
Represents an artifact generated for a task.
type AuthorizationCodeOAuthFlow ¶
type AuthorizationCodeOAuthFlow struct {
AuthorizationURL string `json:"authorizationUrl"`
RefreshURL *string `json:"refreshUrl,omitempty"`
Scopes map[string]string `json:"scopes"`
TokenURL string `json:"tokenUrl"`
}
Configuration details for a supported OAuth Flow
type CancelTaskRequest ¶
type CancelTaskRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params TaskIdParams `json:"params"`
}
JSON-RPC request model for the 'tasks/cancel' method.
type CancelTaskResponse ¶
type CancelTaskResponse interface{}
JSON-RPC response for the 'tasks/cancel' method.
type CancelTaskSuccessResponse ¶
type CancelTaskSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result Task `json:"result"`
}
JSON-RPC success response model for the 'tasks/cancel' method.
type ClientCredentialsOAuthFlow ¶
type ClientCredentialsOAuthFlow struct {
RefreshURL *string `json:"refreshUrl,omitempty"`
Scopes map[string]string `json:"scopes"`
TokenURL string `json:"tokenUrl"`
}
Configuration details for a supported OAuth Flow
type ContentTypeNotSupportedError ¶
type ContentTypeNotSupportedError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
A2A specific error indicating incompatible content types between request and agent capabilities.
type DataPart ¶
type DataPart struct {
Data map[string]interface{} `json:"data"`
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Represents a structured data segment within a message part.
type DeleteTaskPushNotificationConfigParams ¶
type DeleteTaskPushNotificationConfigParams struct {
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
PushNotificationConfigID string `json:"pushNotificationConfigId"`
}
Parameters for removing pushNotificationConfiguration associated with a Task
type DeleteTaskPushNotificationConfigRequest ¶
type DeleteTaskPushNotificationConfigRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params DeleteTaskPushNotificationConfigParams `json:"params"`
}
JSON-RPC request model for the 'tasks/pushNotificationConfig/delete' method.
type DeleteTaskPushNotificationConfigResponse ¶
type DeleteTaskPushNotificationConfigResponse interface{}
JSON-RPC response for the 'tasks/pushNotificationConfig/delete' method.
type DeleteTaskPushNotificationConfigSuccessResponse ¶
type DeleteTaskPushNotificationConfigSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result interface{} `json:"result"`
}
JSON-RPC success response model for the 'tasks/pushNotificationConfig/delete' method.
type FileBase ¶
type FileBase struct {
MIMEType *string `json:"mimeType,omitempty"`
Name *string `json:"name,omitempty"`
}
Represents the base entity for FileParts
type FileData ¶
type FileData struct {
Name *string `json:"name,omitempty"`
MIMEType *string `json:"mimeType,omitempty"`
Bytes *string `json:"bytes,omitempty"`
URI *string `json:"uri,omitempty"`
}
FileData represents file information with proper typing
type FilePart ¶
type FilePart struct {
File interface{} `json:"file"`
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Represents a File segment within parts.
type FileWithBytes ¶
type FileWithBytes struct {
Bytes string `json:"bytes"`
MIMEType *string `json:"mimeType,omitempty"`
Name *string `json:"name,omitempty"`
}
Define the variant where 'bytes' is present and 'uri' is absent
type FileWithUri ¶
type FileWithUri struct {
MIMEType *string `json:"mimeType,omitempty"`
Name *string `json:"name,omitempty"`
URI string `json:"uri"`
}
Define the variant where 'uri' is present and 'bytes' is absent
type GetTaskPushNotificationConfigParams ¶
type GetTaskPushNotificationConfigParams struct {
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
PushNotificationConfigID *string `json:"pushNotificationConfigId,omitempty"`
}
Parameters for fetching a pushNotificationConfiguration associated with a Task
type GetTaskPushNotificationConfigRequest ¶
type GetTaskPushNotificationConfigRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params interface{} `json:"params"`
}
JSON-RPC request model for the 'tasks/pushNotificationConfig/get' method.
type GetTaskPushNotificationConfigResponse ¶
type GetTaskPushNotificationConfigResponse interface{}
JSON-RPC response for the 'tasks/pushNotificationConfig/set' method.
type GetTaskPushNotificationConfigSuccessResponse ¶
type GetTaskPushNotificationConfigSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result TaskPushNotificationConfig `json:"result"`
}
JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.
type GetTaskRequest ¶
type GetTaskRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params TaskQueryParams `json:"params"`
}
JSON-RPC request model for the 'tasks/get' method.
type GetTaskResponse ¶
type GetTaskResponse interface{}
JSON-RPC response for the 'tasks/get' method.
type GetTaskSuccessResponse ¶
type GetTaskSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result Task `json:"result"`
}
JSON-RPC success response for the 'tasks/get' method.
type HTTPAuthSecurityScheme ¶
type HTTPAuthSecurityScheme struct {
BearerFormat *string `json:"bearerFormat,omitempty"`
Description *string `json:"description,omitempty"`
Scheme string `json:"scheme"`
Type string `json:"type"`
}
HTTP Authentication security scheme.
type ImplicitOAuthFlow ¶
type ImplicitOAuthFlow struct {
AuthorizationURL string `json:"authorizationUrl"`
RefreshURL *string `json:"refreshUrl,omitempty"`
Scopes map[string]string `json:"scopes"`
}
Configuration details for a supported OAuth Flow
type InternalError ¶
type InternalError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
JSON-RPC error indicating an internal JSON-RPC error on the server.
type InvalidAgentResponseError ¶
type InvalidAgentResponseError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
A2A specific error indicating agent returned invalid response for the current method
type InvalidParamsError ¶
type InvalidParamsError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
JSON-RPC error indicating invalid method parameter(s).
type InvalidRequestError ¶
type InvalidRequestError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
JSON-RPC error indicating the JSON sent is not a valid Request object.
type JSONParseError ¶
type JSONParseError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
JSON-RPC error indicating invalid JSON was received by the server.
type JSONRPCError ¶
type JSONRPCError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
Represents a JSON-RPC 2.0 Error object. This is typically included in a JSONRPCErrorResponse when an error occurs.
type JSONRPCErrorResponse ¶
type JSONRPCErrorResponse struct {
Error interface{} `json:"error"`
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
}
Represents a JSON-RPC 2.0 Error Response object.
type JSONRPCMessage ¶
type JSONRPCMessage struct {
ID *interface{} `json:"id,omitempty"`
JSONRPC string `json:"jsonrpc"`
}
Base interface for any JSON-RPC 2.0 request or response.
type JSONRPCRequest ¶
type JSONRPCRequest struct {
ID *interface{} `json:"id,omitempty"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params map[string]interface{} `json:"params,omitempty"`
}
Represents a JSON-RPC 2.0 Request object.
type JSONRPCSuccessResponse ¶
type JSONRPCSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result interface{} `json:"result"`
}
Represents a JSON-RPC 2.0 Success Response object.
type ListTaskPushNotificationConfigParams ¶
type ListTaskPushNotificationConfigParams struct {
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Parameters for getting list of pushNotificationConfigurations associated with a Task
type ListTaskPushNotificationConfigRequest ¶
type ListTaskPushNotificationConfigRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params ListTaskPushNotificationConfigParams `json:"params"`
}
JSON-RPC request model for the 'tasks/pushNotificationConfig/list' method.
type ListTaskPushNotificationConfigResponse ¶
type ListTaskPushNotificationConfigResponse interface{}
JSON-RPC response for the 'tasks/pushNotificationConfig/list' method.
type ListTaskPushNotificationConfigSuccessResponse ¶
type ListTaskPushNotificationConfigSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result []TaskPushNotificationConfig `json:"result"`
}
JSON-RPC success response model for the 'tasks/pushNotificationConfig/list' method.
type ListTasksRequest ¶
type ListTasksRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params *TaskListParams `json:"params,omitempty"`
}
JSON-RPC request model for the 'tasks/list' method.
type ListTasksResponse ¶
type ListTasksResponse interface{}
JSON-RPC response for the 'tasks/list' method.
type ListTasksSuccessResponse ¶
type ListTasksSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result TaskList `json:"result"`
}
JSON-RPC success response for the 'tasks/list' method.
type Message ¶
type Message struct {
ContextID *string `json:"contextId,omitempty"`
Extensions []string `json:"extensions,omitempty"`
Kind string `json:"kind"`
MessageID string `json:"messageId"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Parts []Part `json:"parts"`
ReferenceTaskIds []string `json:"referenceTaskIds,omitempty"`
Role string `json:"role"`
TaskID *string `json:"taskId,omitempty"`
}
Represents a single message exchanged between user and agent.
type MessagePartKind ¶
type MessagePartKind string
MessagePartKind represents the different types of message parts supported by A2A protocol. Based on the A2A specification: https://google-a2a.github.io/A2A/latest/
const ( // MessagePartKindText represents a text segment within message parts MessagePartKindText MessagePartKind = "text" // MessagePartKindFile represents a file segment within message parts MessagePartKindFile MessagePartKind = "file" // MessagePartKindData represents a structured data segment within message parts MessagePartKindData MessagePartKind = "data" )
MessagePartKind enum values for the three official message part types
func (MessagePartKind) IsValid ¶
func (k MessagePartKind) IsValid() bool
IsValid checks if the MessagePartKind is one of the supported values
func (MessagePartKind) String ¶
func (k MessagePartKind) String() string
String returns the string representation of the MessagePartKind
type MessageSendConfiguration ¶
type MessageSendConfiguration struct {
AcceptedOutputModes []string `json:"acceptedOutputModes"`
Blocking *bool `json:"blocking,omitempty"`
HistoryLength *int `json:"historyLength,omitempty"`
PushNotificationConfig *PushNotificationConfig `json:"pushNotificationConfig,omitempty"`
}
Configuration for the send message request.
type MessageSendParams ¶
type MessageSendParams struct {
Configuration *MessageSendConfiguration `json:"configuration,omitempty"`
Message Message `json:"message"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Sent by the client to the agent as a request. May create, continue or restart a task.
type MethodNotFoundError ¶
type MethodNotFoundError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
JSON-RPC error indicating the method does not exist or is not available.
type OAuth2SecurityScheme ¶
type OAuth2SecurityScheme struct {
Description *string `json:"description,omitempty"`
Flows OAuthFlows `json:"flows"`
Type string `json:"type"`
}
OAuth2.0 security scheme configuration.
type OAuthFlows ¶
type OAuthFlows struct {
AuthorizationCode *AuthorizationCodeOAuthFlow `json:"authorizationCode,omitempty"`
ClientCredentials *ClientCredentialsOAuthFlow `json:"clientCredentials,omitempty"`
Implicit *ImplicitOAuthFlow `json:"implicit,omitempty"`
Password *PasswordOAuthFlow `json:"password,omitempty"`
}
Allows configuration of the supported OAuth Flows
type OpenIdConnectSecurityScheme ¶
type OpenIdConnectSecurityScheme struct {
Description *string `json:"description,omitempty"`
OpenIDConnectURL string `json:"openIdConnectUrl"`
Type string `json:"type"`
}
OpenID Connect security scheme configuration.
type OptimizedMessagePart ¶
type OptimizedMessagePart struct {
Kind MessagePartKind `json:"kind"`
Text *string `json:"text,omitempty"`
File *FileData `json:"file,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
OptimizedMessagePart provides strongly-typed message parts
type Part ¶
type Part interface{}
Represents a part of a message, which can be text, a file, or structured data.
type PartBase ¶
type PartBase struct {
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Base properties common to all message parts.
type PasswordOAuthFlow ¶
type PasswordOAuthFlow struct {
RefreshURL *string `json:"refreshUrl,omitempty"`
Scopes map[string]string `json:"scopes"`
TokenURL string `json:"tokenUrl"`
}
Configuration details for a supported OAuth Flow
type PushNotificationAuthenticationInfo ¶
type PushNotificationAuthenticationInfo struct {
Credentials *string `json:"credentials,omitempty"`
Schemes []string `json:"schemes"`
}
Defines authentication details for push notifications.
type PushNotificationConfig ¶
type PushNotificationConfig struct {
Authentication *PushNotificationAuthenticationInfo `json:"authentication,omitempty"`
ID *string `json:"id,omitempty"`
Token *string `json:"token,omitempty"`
URL string `json:"url"`
}
Configuration for setting up push notifications for task updates.
type PushNotificationNotSupportedError ¶
type PushNotificationNotSupportedError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
A2A specific error indicating the agent does not support push notifications.
type SecurityScheme ¶
type SecurityScheme interface{}
Mirrors the OpenAPI Security Scheme Object (https://swagger.io/specification/#security-scheme-object)
type SecuritySchemeBase ¶
type SecuritySchemeBase struct {
Description *string `json:"description,omitempty"`
}
Base properties shared by all security schemes.
type SendMessageRequest ¶
type SendMessageRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params MessageSendParams `json:"params"`
}
JSON-RPC request model for the 'message/send' method.
type SendMessageResponse ¶
type SendMessageResponse interface{}
JSON-RPC response model for the 'message/send' method.
type SendMessageSuccessResponse ¶
type SendMessageSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result interface{} `json:"result"`
}
JSON-RPC success response model for the 'message/send' method.
type SendStreamingMessageRequest ¶
type SendStreamingMessageRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params MessageSendParams `json:"params"`
}
JSON-RPC request model for the 'message/stream' method.
type SendStreamingMessageResponse ¶
type SendStreamingMessageResponse interface{}
JSON-RPC response model for the 'message/stream' method.
type SendStreamingMessageSuccessResponse ¶
type SendStreamingMessageSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result interface{} `json:"result"`
}
JSON-RPC success response model for the 'message/stream' method.
type SetTaskPushNotificationConfigRequest ¶
type SetTaskPushNotificationConfigRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params TaskPushNotificationConfig `json:"params"`
}
JSON-RPC request model for the 'tasks/pushNotificationConfig/set' method.
type SetTaskPushNotificationConfigResponse ¶
type SetTaskPushNotificationConfigResponse interface{}
JSON-RPC response for the 'tasks/pushNotificationConfig/set' method.
type SetTaskPushNotificationConfigSuccessResponse ¶
type SetTaskPushNotificationConfigSuccessResponse struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Result TaskPushNotificationConfig `json:"result"`
}
JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.
type TaskArtifactUpdateEvent ¶
type TaskArtifactUpdateEvent struct {
Append *bool `json:"append,omitempty"`
Artifact Artifact `json:"artifact"`
ContextID string `json:"contextId"`
Kind string `json:"kind"`
LastChunk *bool `json:"lastChunk,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
TaskID string `json:"taskId"`
}
Sent by server during sendStream or subscribe requests
type TaskIdParams ¶
type TaskIdParams struct {
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Parameters containing only a task ID, used for simple task operations.
type TaskList ¶
type TaskList struct {
Limit int `json:"limit"`
Offset int `json:"offset"`
Tasks []Task `json:"tasks"`
Total int `json:"total"`
}
List of tasks with pagination information.
type TaskListParams ¶
type TaskListParams struct {
ContextID *string `json:"contextId,omitempty"`
Limit int `json:"limit,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Offset int `json:"offset,omitempty"`
State *TaskState `json:"state,omitempty"`
}
Parameters for listing tasks with optional filtering and pagination.
type TaskNotCancelableError ¶
type TaskNotCancelableError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
A2A specific error indicating the task is in a state where it cannot be canceled.
type TaskNotFoundError ¶
type TaskNotFoundError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
A2A specific error indicating the requested task ID was not found.
type TaskPushNotificationConfig ¶
type TaskPushNotificationConfig struct {
PushNotificationConfig PushNotificationConfig `json:"pushNotificationConfig"`
TaskID string `json:"taskId"`
}
Parameters for setting or getting push notification configuration for a task
type TaskQueryParams ¶
type TaskQueryParams struct {
HistoryLength *int `json:"historyLength,omitempty"`
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Parameters for querying a task, including optional history length.
type TaskResubscriptionRequest ¶
type TaskResubscriptionRequest struct {
ID interface{} `json:"id"`
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params TaskIdParams `json:"params"`
}
JSON-RPC request model for the 'tasks/resubscribe' method.
type TaskState ¶
type TaskState string
Represents the possible states of a Task.
const ( TaskStateAuthRequired TaskState = "auth-required" TaskStateCanceled TaskState = "canceled" TaskStateCompleted TaskState = "completed" TaskStateFailed TaskState = "failed" TaskStateInputRequired TaskState = "input-required" TaskStateRejected TaskState = "rejected" TaskStateSubmitted TaskState = "submitted" TaskStateUnknown TaskState = "unknown" TaskStateWorking TaskState = "working" )
TaskState enum values
type TaskStatus ¶
type TaskStatus struct {
Message *Message `json:"message,omitempty"`
State TaskState `json:"state"`
Timestamp *string `json:"timestamp,omitempty"`
}
TaskState and accompanying message.
type TaskStatusUpdateEvent ¶
type TaskStatusUpdateEvent struct {
ContextID string `json:"contextId"`
Final bool `json:"final"`
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Status TaskStatus `json:"status"`
TaskID string `json:"taskId"`
}
Sent by server during sendStream or subscribe requests
type TextPart ¶
type TextPart struct {
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Text string `json:"text"`
}
Represents a text segment within parts.
type UnsupportedOperationError ¶
type UnsupportedOperationError struct {
Code int `json:"code"`
Data *interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
A2A specific error indicating the requested operation is not supported by the agent.