Versions in this module Expand all Collapse all v0 v0.19.0 Aug 21, 2026 v0.18.1 Aug 20, 2026 Changes in this version type Message + func (m Message) PromptText() string v0.17.1 Jul 14, 2026 v0.17.0 Jul 13, 2026 Changes in this version type TaskState + const TaskStateDeferred v0.16.0 Jul 1, 2026 v0.15.0 Jun 15, 2026 Changes in this version + const ErrCodeInternal + const ErrCodeInvalidParams + const ErrCodeInvalidRequest + const ErrCodeMethodNotFound + const ErrCodeParseError + var ErrMessagePartsEmpty = errors.New("message parts must contain at least one element") + var ErrMessageRoleMissing = errors.New("message role is required") + var ErrPartKindMissing = errors.New("part kind is required") + var ErrPartKindUnknown = errors.New("part kind is not one of text/data/file") + type AgentCapabilities struct + PushNotifications bool + StateTransitionHistory bool + Streaming bool + type AgentCard struct + Capabilities *AgentCapabilities + DefaultInputModes []string + DefaultOutputModes []string + Description string + DocumentationURL string + IconURL string + Name string + ProtocolVersion string + Provider *AgentProvider + Security []map[string][]string + SecuritySchemes map[string]*SecurityScheme + Skills []Skill + URL string + Version string + type AgentProvider struct + Organization string + URL string + type Artifact struct + Description string + Name string + Parts []Part + type CancelTaskParams struct + ID string + Reason string + type FileContent struct + Bytes []byte + MimeType string + Name string + URI string + type GetTaskParams struct + ID string + type JSONRPCError struct + Code int + Data any + Message string + type JSONRPCRequest struct + ID any + JSONRPC string + Method string + Params json.RawMessage + type JSONRPCResponse struct + Error *JSONRPCError + ID any + JSONRPC string + Result any + func NewErrorResponse(id any, code int, msg string) *JSONRPCResponse + func NewResponse(id any, result any) *JSONRPCResponse + type Message struct + Parts []Part + Role MessageRole + Summary string + func (m Message) Validate() error + type MessageRole string + const MessageRoleAgent + const MessageRoleUser + type OAuthFlow struct + AuthorizationURL string + RefreshURL string + Scopes map[string]string + TokenURL string + type OAuthFlows struct + AuthorizationCode *OAuthFlow + ClientCredentials *OAuthFlow + Implicit *OAuthFlow + Password *OAuthFlow + type Part struct + Data any + File *FileContent + Kind PartKind + Text string + func NewDataPart(data any) Part + func NewFilePart(file FileContent) Part + func NewTextPart(text string) Part + func (p Part) Validate() error + type PartKind string + const PartKindData + const PartKindFile + const PartKindText + type SecurityScheme struct + BearerFormat string + Description string + Flows *OAuthFlows + In string + Name string + OpenIDConnectURL string + Scheme string + Type string + type SendTaskParams struct + ID string + Message Message + type Skill struct + Description string + Examples []string + ID string + InputModes []string + Name string + OutputModes []string + Tags []string + type Task struct + Artifacts []Artifact + History []Message + ID string + Metadata map[string]any + Status TaskStatus + type TaskState string + const TaskStateAuthRequired + const TaskStateCanceled + const TaskStateCompleted + const TaskStateFailed + const TaskStateInputRequired + const TaskStateRejected + const TaskStateSubmitted + const TaskStateWorking + type TaskStatus struct + Message *Message + State TaskState + type TaskStore struct + func NewTaskStore() *TaskStore + func (s *TaskStore) Get(id string) *Task + func (s *TaskStore) Put(t *Task) + func (s *TaskStore) SetArtifacts(id string, artifacts []Artifact) bool + func (s *TaskStore) UpdateStatus(id string, status TaskStatus) bool