Documentation
¶
Overview ¶
Package a2apb contains types and interfaces generated from published official A2A .proto specification.
Index ¶
- Constants
- Variables
- func RegisterA2AServiceServer(s grpc.ServiceRegistrar, srv A2AServiceServer)
- type A2AServiceClient
- type A2AServiceServer
- type A2AService_SendStreamingMessageClient
- type A2AService_SendStreamingMessageServer
- type A2AService_TaskSubscriptionClient
- type A2AService_TaskSubscriptionServer
- type APIKeySecurityScheme
- func (*APIKeySecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (x *APIKeySecurityScheme) GetDescription() string
- func (x *APIKeySecurityScheme) GetLocation() string
- func (x *APIKeySecurityScheme) GetName() string
- func (*APIKeySecurityScheme) ProtoMessage()
- func (x *APIKeySecurityScheme) ProtoReflect() protoreflect.Message
- func (x *APIKeySecurityScheme) Reset()
- func (x *APIKeySecurityScheme) String() string
- type AgentCapabilities
- func (*AgentCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *AgentCapabilities) GetExtensions() []*AgentExtension
- func (x *AgentCapabilities) GetPushNotifications() bool
- func (x *AgentCapabilities) GetStateTransitionHistory() bool
- func (x *AgentCapabilities) GetStreaming() bool
- func (*AgentCapabilities) ProtoMessage()
- func (x *AgentCapabilities) ProtoReflect() protoreflect.Message
- func (x *AgentCapabilities) Reset()
- func (x *AgentCapabilities) String() string
- type AgentCard
- func (*AgentCard) Descriptor() ([]byte, []int)deprecated
- func (x *AgentCard) GetAdditionalInterfaces() []*AgentInterface
- func (x *AgentCard) GetCapabilities() *AgentCapabilities
- func (x *AgentCard) GetDefaultInputModes() []string
- func (x *AgentCard) GetDefaultOutputModes() []string
- func (x *AgentCard) GetDescription() string
- func (x *AgentCard) GetDocumentationUrl() string
- func (x *AgentCard) GetIconUrl() string
- func (x *AgentCard) GetName() string
- func (x *AgentCard) GetPreferredTransport() string
- func (x *AgentCard) GetProtocolVersion() string
- func (x *AgentCard) GetProvider() *AgentProvider
- func (x *AgentCard) GetSecurity() []*Security
- func (x *AgentCard) GetSecuritySchemes() map[string]*SecurityScheme
- func (x *AgentCard) GetSignatures() []*AgentCardSignature
- func (x *AgentCard) GetSkills() []*AgentSkill
- func (x *AgentCard) GetSupportsAuthenticatedExtendedCard() bool
- func (x *AgentCard) GetUrl() string
- func (x *AgentCard) GetVersion() string
- func (*AgentCard) ProtoMessage()
- func (x *AgentCard) ProtoReflect() protoreflect.Message
- func (x *AgentCard) Reset()
- func (x *AgentCard) String() string
- type AgentCardSignature
- func (*AgentCardSignature) Descriptor() ([]byte, []int)deprecated
- func (x *AgentCardSignature) GetHeader() *structpb.Struct
- func (x *AgentCardSignature) GetProtected() string
- func (x *AgentCardSignature) GetSignature() string
- func (*AgentCardSignature) ProtoMessage()
- func (x *AgentCardSignature) ProtoReflect() protoreflect.Message
- func (x *AgentCardSignature) Reset()
- func (x *AgentCardSignature) String() string
- type AgentExtension
- func (*AgentExtension) Descriptor() ([]byte, []int)deprecated
- func (x *AgentExtension) GetDescription() string
- func (x *AgentExtension) GetParams() *structpb.Struct
- func (x *AgentExtension) GetRequired() bool
- func (x *AgentExtension) GetUri() string
- func (*AgentExtension) ProtoMessage()
- func (x *AgentExtension) ProtoReflect() protoreflect.Message
- func (x *AgentExtension) Reset()
- func (x *AgentExtension) String() string
- type AgentInterface
- func (*AgentInterface) Descriptor() ([]byte, []int)deprecated
- func (x *AgentInterface) GetTransport() string
- func (x *AgentInterface) GetUrl() string
- func (*AgentInterface) ProtoMessage()
- func (x *AgentInterface) ProtoReflect() protoreflect.Message
- func (x *AgentInterface) Reset()
- func (x *AgentInterface) String() string
- type AgentProvider
- func (*AgentProvider) Descriptor() ([]byte, []int)deprecated
- func (x *AgentProvider) GetOrganization() string
- func (x *AgentProvider) GetUrl() string
- func (*AgentProvider) ProtoMessage()
- func (x *AgentProvider) ProtoReflect() protoreflect.Message
- func (x *AgentProvider) Reset()
- func (x *AgentProvider) String() string
- type AgentSkill
- func (*AgentSkill) Descriptor() ([]byte, []int)deprecated
- func (x *AgentSkill) GetDescription() string
- func (x *AgentSkill) GetExamples() []string
- func (x *AgentSkill) GetId() string
- func (x *AgentSkill) GetInputModes() []string
- func (x *AgentSkill) GetName() string
- func (x *AgentSkill) GetOutputModes() []string
- func (x *AgentSkill) GetSecurity() []*Security
- func (x *AgentSkill) GetTags() []string
- func (*AgentSkill) ProtoMessage()
- func (x *AgentSkill) ProtoReflect() protoreflect.Message
- func (x *AgentSkill) Reset()
- func (x *AgentSkill) String() string
- type Artifact
- func (*Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Artifact) GetArtifactId() string
- func (x *Artifact) GetDescription() string
- func (x *Artifact) GetExtensions() []string
- func (x *Artifact) GetMetadata() *structpb.Struct
- func (x *Artifact) GetName() string
- func (x *Artifact) GetParts() []*Part
- func (*Artifact) ProtoMessage()
- func (x *Artifact) ProtoReflect() protoreflect.Message
- func (x *Artifact) Reset()
- func (x *Artifact) String() string
- type AuthenticationInfo
- func (*AuthenticationInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationInfo) GetCredentials() string
- func (x *AuthenticationInfo) GetSchemes() []string
- func (*AuthenticationInfo) ProtoMessage()
- func (x *AuthenticationInfo) ProtoReflect() protoreflect.Message
- func (x *AuthenticationInfo) Reset()
- func (x *AuthenticationInfo) String() string
- type AuthorizationCodeOAuthFlow
- func (*AuthorizationCodeOAuthFlow) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizationCodeOAuthFlow) GetAuthorizationUrl() string
- func (x *AuthorizationCodeOAuthFlow) GetRefreshUrl() string
- func (x *AuthorizationCodeOAuthFlow) GetScopes() map[string]string
- func (x *AuthorizationCodeOAuthFlow) GetTokenUrl() string
- func (*AuthorizationCodeOAuthFlow) ProtoMessage()
- func (x *AuthorizationCodeOAuthFlow) ProtoReflect() protoreflect.Message
- func (x *AuthorizationCodeOAuthFlow) Reset()
- func (x *AuthorizationCodeOAuthFlow) String() string
- type CancelTaskRequest
- type ClientCredentialsOAuthFlow
- func (*ClientCredentialsOAuthFlow) Descriptor() ([]byte, []int)deprecated
- func (x *ClientCredentialsOAuthFlow) GetRefreshUrl() string
- func (x *ClientCredentialsOAuthFlow) GetScopes() map[string]string
- func (x *ClientCredentialsOAuthFlow) GetTokenUrl() string
- func (*ClientCredentialsOAuthFlow) ProtoMessage()
- func (x *ClientCredentialsOAuthFlow) ProtoReflect() protoreflect.Message
- func (x *ClientCredentialsOAuthFlow) Reset()
- func (x *ClientCredentialsOAuthFlow) String() string
- type CreateTaskPushNotificationConfigRequest
- func (*CreateTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTaskPushNotificationConfigRequest) GetConfig() *TaskPushNotificationConfig
- func (x *CreateTaskPushNotificationConfigRequest) GetConfigId() string
- func (x *CreateTaskPushNotificationConfigRequest) GetParent() string
- func (*CreateTaskPushNotificationConfigRequest) ProtoMessage()
- func (x *CreateTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTaskPushNotificationConfigRequest) Reset()
- func (x *CreateTaskPushNotificationConfigRequest) String() string
- type DataPart
- type DeleteTaskPushNotificationConfigRequest
- func (*DeleteTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTaskPushNotificationConfigRequest) GetName() string
- func (*DeleteTaskPushNotificationConfigRequest) ProtoMessage()
- func (x *DeleteTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTaskPushNotificationConfigRequest) Reset()
- func (x *DeleteTaskPushNotificationConfigRequest) String() string
- type FilePart
- func (*FilePart) Descriptor() ([]byte, []int)deprecated
- func (x *FilePart) GetFile() isFilePart_File
- func (x *FilePart) GetFileWithBytes() []byte
- func (x *FilePart) GetFileWithUri() string
- func (x *FilePart) GetMimeType() string
- func (x *FilePart) GetName() string
- func (*FilePart) ProtoMessage()
- func (x *FilePart) ProtoReflect() protoreflect.Message
- func (x *FilePart) Reset()
- func (x *FilePart) String() string
- type FilePart_FileWithBytes
- type FilePart_FileWithUri
- type GetAgentCardRequest
- type GetTaskPushNotificationConfigRequest
- func (*GetTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTaskPushNotificationConfigRequest) GetName() string
- func (*GetTaskPushNotificationConfigRequest) ProtoMessage()
- func (x *GetTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetTaskPushNotificationConfigRequest) Reset()
- func (x *GetTaskPushNotificationConfigRequest) String() string
- type GetTaskRequest
- func (*GetTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTaskRequest) GetHistoryLength() int32
- func (x *GetTaskRequest) GetName() string
- func (*GetTaskRequest) ProtoMessage()
- func (x *GetTaskRequest) ProtoReflect() protoreflect.Message
- func (x *GetTaskRequest) Reset()
- func (x *GetTaskRequest) String() string
- type HTTPAuthSecurityScheme
- func (*HTTPAuthSecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPAuthSecurityScheme) GetBearerFormat() string
- func (x *HTTPAuthSecurityScheme) GetDescription() string
- func (x *HTTPAuthSecurityScheme) GetScheme() string
- func (*HTTPAuthSecurityScheme) ProtoMessage()
- func (x *HTTPAuthSecurityScheme) ProtoReflect() protoreflect.Message
- func (x *HTTPAuthSecurityScheme) Reset()
- func (x *HTTPAuthSecurityScheme) String() string
- type ImplicitOAuthFlow
- func (*ImplicitOAuthFlow) Descriptor() ([]byte, []int)deprecated
- func (x *ImplicitOAuthFlow) GetAuthorizationUrl() string
- func (x *ImplicitOAuthFlow) GetRefreshUrl() string
- func (x *ImplicitOAuthFlow) GetScopes() map[string]string
- func (*ImplicitOAuthFlow) ProtoMessage()
- func (x *ImplicitOAuthFlow) ProtoReflect() protoreflect.Message
- func (x *ImplicitOAuthFlow) Reset()
- func (x *ImplicitOAuthFlow) String() string
- type ListTaskPushNotificationConfigRequest
- func (*ListTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTaskPushNotificationConfigRequest) GetPageSize() int32
- func (x *ListTaskPushNotificationConfigRequest) GetPageToken() string
- func (x *ListTaskPushNotificationConfigRequest) GetParent() string
- func (*ListTaskPushNotificationConfigRequest) ProtoMessage()
- func (x *ListTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
- func (x *ListTaskPushNotificationConfigRequest) Reset()
- func (x *ListTaskPushNotificationConfigRequest) String() string
- type ListTaskPushNotificationConfigResponse
- func (*ListTaskPushNotificationConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTaskPushNotificationConfigResponse) GetConfigs() []*TaskPushNotificationConfig
- func (x *ListTaskPushNotificationConfigResponse) GetNextPageToken() string
- func (*ListTaskPushNotificationConfigResponse) ProtoMessage()
- func (x *ListTaskPushNotificationConfigResponse) ProtoReflect() protoreflect.Message
- func (x *ListTaskPushNotificationConfigResponse) Reset()
- func (x *ListTaskPushNotificationConfigResponse) String() string
- type ListTasksRequest
- func (*ListTasksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksRequest) GetContextId() string
- func (x *ListTasksRequest) GetHistoryLength() int32
- func (x *ListTasksRequest) GetIncludeArtifacts() bool
- func (x *ListTasksRequest) GetLastUpdatedTime() *timestamppb.Timestamp
- func (x *ListTasksRequest) GetPageSize() int32
- func (x *ListTasksRequest) GetPageToken() string
- func (x *ListTasksRequest) GetStatus() TaskState
- func (*ListTasksRequest) ProtoMessage()
- func (x *ListTasksRequest) ProtoReflect() protoreflect.Message
- func (x *ListTasksRequest) Reset()
- func (x *ListTasksRequest) String() string
- type ListTasksResponse
- func (*ListTasksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksResponse) GetNextPageToken() string
- func (x *ListTasksResponse) GetTasks() []*Task
- func (x *ListTasksResponse) GetTotalSize() int32
- func (*ListTasksResponse) ProtoMessage()
- func (x *ListTasksResponse) ProtoReflect() protoreflect.Message
- func (x *ListTasksResponse) Reset()
- func (x *ListTasksResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContextId() string
- func (x *Message) GetExtensions() []string
- func (x *Message) GetMessageId() string
- func (x *Message) GetMetadata() *structpb.Struct
- func (x *Message) GetParts() []*Part
- func (x *Message) GetReferenceTaskIds() []string
- func (x *Message) GetRole() Role
- func (x *Message) GetTaskId() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MutualTlsSecurityScheme
- func (*MutualTlsSecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (x *MutualTlsSecurityScheme) GetDescription() string
- func (*MutualTlsSecurityScheme) ProtoMessage()
- func (x *MutualTlsSecurityScheme) ProtoReflect() protoreflect.Message
- func (x *MutualTlsSecurityScheme) Reset()
- func (x *MutualTlsSecurityScheme) String() string
- type OAuth2SecurityScheme
- func (*OAuth2SecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth2SecurityScheme) GetDescription() string
- func (x *OAuth2SecurityScheme) GetFlows() *OAuthFlows
- func (x *OAuth2SecurityScheme) GetOauth2MetadataUrl() string
- func (*OAuth2SecurityScheme) ProtoMessage()
- func (x *OAuth2SecurityScheme) ProtoReflect() protoreflect.Message
- func (x *OAuth2SecurityScheme) Reset()
- func (x *OAuth2SecurityScheme) String() string
- type OAuthFlows
- func (*OAuthFlows) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthFlows) GetAuthorizationCode() *AuthorizationCodeOAuthFlow
- func (x *OAuthFlows) GetClientCredentials() *ClientCredentialsOAuthFlow
- func (x *OAuthFlows) GetFlow() isOAuthFlows_Flow
- func (x *OAuthFlows) GetImplicit() *ImplicitOAuthFlow
- func (x *OAuthFlows) GetPassword() *PasswordOAuthFlow
- func (*OAuthFlows) ProtoMessage()
- func (x *OAuthFlows) ProtoReflect() protoreflect.Message
- func (x *OAuthFlows) Reset()
- func (x *OAuthFlows) String() string
- type OAuthFlows_AuthorizationCode
- type OAuthFlows_ClientCredentials
- type OAuthFlows_Implicit
- type OAuthFlows_Password
- type OpenIdConnectSecurityScheme
- func (*OpenIdConnectSecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (x *OpenIdConnectSecurityScheme) GetDescription() string
- func (x *OpenIdConnectSecurityScheme) GetOpenIdConnectUrl() string
- func (*OpenIdConnectSecurityScheme) ProtoMessage()
- func (x *OpenIdConnectSecurityScheme) ProtoReflect() protoreflect.Message
- func (x *OpenIdConnectSecurityScheme) Reset()
- func (x *OpenIdConnectSecurityScheme) String() string
- type Part
- func (*Part) Descriptor() ([]byte, []int)deprecated
- func (x *Part) GetData() *DataPart
- func (x *Part) GetFile() *FilePart
- func (x *Part) GetMetadata() *structpb.Struct
- func (x *Part) GetPart() isPart_Part
- func (x *Part) GetText() string
- func (*Part) ProtoMessage()
- func (x *Part) ProtoReflect() protoreflect.Message
- func (x *Part) Reset()
- func (x *Part) String() string
- type Part_Data
- type Part_File
- type Part_Text
- type PasswordOAuthFlow
- func (*PasswordOAuthFlow) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordOAuthFlow) GetRefreshUrl() string
- func (x *PasswordOAuthFlow) GetScopes() map[string]string
- func (x *PasswordOAuthFlow) GetTokenUrl() string
- func (*PasswordOAuthFlow) ProtoMessage()
- func (x *PasswordOAuthFlow) ProtoReflect() protoreflect.Message
- func (x *PasswordOAuthFlow) Reset()
- func (x *PasswordOAuthFlow) String() string
- type PushNotificationConfig
- func (*PushNotificationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PushNotificationConfig) GetAuthentication() *AuthenticationInfo
- func (x *PushNotificationConfig) GetId() string
- func (x *PushNotificationConfig) GetToken() string
- func (x *PushNotificationConfig) GetUrl() string
- func (*PushNotificationConfig) ProtoMessage()
- func (x *PushNotificationConfig) ProtoReflect() protoreflect.Message
- func (x *PushNotificationConfig) Reset()
- func (x *PushNotificationConfig) String() string
- type Role
- type Security
- type SecurityScheme
- func (*SecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (x *SecurityScheme) GetApiKeySecurityScheme() *APIKeySecurityScheme
- func (x *SecurityScheme) GetHttpAuthSecurityScheme() *HTTPAuthSecurityScheme
- func (x *SecurityScheme) GetMtlsSecurityScheme() *MutualTlsSecurityScheme
- func (x *SecurityScheme) GetOauth2SecurityScheme() *OAuth2SecurityScheme
- func (x *SecurityScheme) GetOpenIdConnectSecurityScheme() *OpenIdConnectSecurityScheme
- func (x *SecurityScheme) GetScheme() isSecurityScheme_Scheme
- func (*SecurityScheme) ProtoMessage()
- func (x *SecurityScheme) ProtoReflect() protoreflect.Message
- func (x *SecurityScheme) Reset()
- func (x *SecurityScheme) String() string
- type SecurityScheme_ApiKeySecurityScheme
- type SecurityScheme_HttpAuthSecurityScheme
- type SecurityScheme_MtlsSecurityScheme
- type SecurityScheme_Oauth2SecurityScheme
- type SecurityScheme_OpenIdConnectSecurityScheme
- type SendMessageConfiguration
- func (*SendMessageConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageConfiguration) GetAcceptedOutputModes() []string
- func (x *SendMessageConfiguration) GetBlocking() bool
- func (x *SendMessageConfiguration) GetHistoryLength() int32
- func (x *SendMessageConfiguration) GetPushNotification() *PushNotificationConfig
- func (*SendMessageConfiguration) ProtoMessage()
- func (x *SendMessageConfiguration) ProtoReflect() protoreflect.Message
- func (x *SendMessageConfiguration) Reset()
- func (x *SendMessageConfiguration) String() string
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageRequest) GetConfiguration() *SendMessageConfiguration
- func (x *SendMessageRequest) GetMetadata() *structpb.Struct
- func (x *SendMessageRequest) GetRequest() *Message
- func (*SendMessageRequest) ProtoMessage()
- func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendMessageRequest) Reset()
- func (x *SendMessageRequest) String() string
- type SendMessageResponse
- func (*SendMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageResponse) GetMsg() *Message
- func (x *SendMessageResponse) GetPayload() isSendMessageResponse_Payload
- func (x *SendMessageResponse) GetTask() *Task
- func (*SendMessageResponse) ProtoMessage()
- func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
- func (x *SendMessageResponse) Reset()
- func (x *SendMessageResponse) String() string
- type SendMessageResponse_Msg
- type SendMessageResponse_Task
- type StreamResponse
- func (*StreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamResponse) GetArtifactUpdate() *TaskArtifactUpdateEvent
- func (x *StreamResponse) GetMsg() *Message
- func (x *StreamResponse) GetPayload() isStreamResponse_Payload
- func (x *StreamResponse) GetStatusUpdate() *TaskStatusUpdateEvent
- func (x *StreamResponse) GetTask() *Task
- func (*StreamResponse) ProtoMessage()
- func (x *StreamResponse) ProtoReflect() protoreflect.Message
- func (x *StreamResponse) Reset()
- func (x *StreamResponse) String() string
- type StreamResponse_ArtifactUpdate
- type StreamResponse_Msg
- type StreamResponse_StatusUpdate
- type StreamResponse_Task
- type StringList
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetArtifacts() []*Artifact
- func (x *Task) GetContextId() string
- func (x *Task) GetHistory() []*Message
- func (x *Task) GetId() string
- func (x *Task) GetMetadata() *structpb.Struct
- func (x *Task) GetStatus() *TaskStatus
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type TaskArtifactUpdateEvent
- func (*TaskArtifactUpdateEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TaskArtifactUpdateEvent) GetAppend() bool
- func (x *TaskArtifactUpdateEvent) GetArtifact() *Artifact
- func (x *TaskArtifactUpdateEvent) GetContextId() string
- func (x *TaskArtifactUpdateEvent) GetLastChunk() bool
- func (x *TaskArtifactUpdateEvent) GetMetadata() *structpb.Struct
- func (x *TaskArtifactUpdateEvent) GetTaskId() string
- func (*TaskArtifactUpdateEvent) ProtoMessage()
- func (x *TaskArtifactUpdateEvent) ProtoReflect() protoreflect.Message
- func (x *TaskArtifactUpdateEvent) Reset()
- func (x *TaskArtifactUpdateEvent) String() string
- type TaskPushNotificationConfig
- func (*TaskPushNotificationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TaskPushNotificationConfig) GetName() string
- func (x *TaskPushNotificationConfig) GetPushNotificationConfig() *PushNotificationConfig
- func (*TaskPushNotificationConfig) ProtoMessage()
- func (x *TaskPushNotificationConfig) ProtoReflect() protoreflect.Message
- func (x *TaskPushNotificationConfig) Reset()
- func (x *TaskPushNotificationConfig) String() string
- type TaskState
- type TaskStatus
- func (*TaskStatus) Descriptor() ([]byte, []int)deprecated
- func (x *TaskStatus) GetState() TaskState
- func (x *TaskStatus) GetTimestamp() *timestamppb.Timestamp
- func (x *TaskStatus) GetUpdate() *Message
- func (*TaskStatus) ProtoMessage()
- func (x *TaskStatus) ProtoReflect() protoreflect.Message
- func (x *TaskStatus) Reset()
- func (x *TaskStatus) String() string
- type TaskStatusUpdateEvent
- func (*TaskStatusUpdateEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TaskStatusUpdateEvent) GetContextId() string
- func (x *TaskStatusUpdateEvent) GetFinal() bool
- func (x *TaskStatusUpdateEvent) GetMetadata() *structpb.Struct
- func (x *TaskStatusUpdateEvent) GetStatus() *TaskStatus
- func (x *TaskStatusUpdateEvent) GetTaskId() string
- func (*TaskStatusUpdateEvent) ProtoMessage()
- func (x *TaskStatusUpdateEvent) ProtoReflect() protoreflect.Message
- func (x *TaskStatusUpdateEvent) Reset()
- func (x *TaskStatusUpdateEvent) String() string
- type TaskSubscriptionRequest
- func (*TaskSubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TaskSubscriptionRequest) GetName() string
- func (*TaskSubscriptionRequest) ProtoMessage()
- func (x *TaskSubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *TaskSubscriptionRequest) Reset()
- func (x *TaskSubscriptionRequest) String() string
- type UnimplementedA2AServiceServer
- func (UnimplementedA2AServiceServer) CancelTask(context.Context, *CancelTaskRequest) (*Task, error)
- func (UnimplementedA2AServiceServer) CreateTaskPushNotificationConfig(context.Context, *CreateTaskPushNotificationConfigRequest) (*TaskPushNotificationConfig, error)
- func (UnimplementedA2AServiceServer) DeleteTaskPushNotificationConfig(context.Context, *DeleteTaskPushNotificationConfigRequest) (*emptypb.Empty, error)
- func (UnimplementedA2AServiceServer) GetAgentCard(context.Context, *GetAgentCardRequest) (*AgentCard, error)
- func (UnimplementedA2AServiceServer) GetTask(context.Context, *GetTaskRequest) (*Task, error)
- func (UnimplementedA2AServiceServer) GetTaskPushNotificationConfig(context.Context, *GetTaskPushNotificationConfigRequest) (*TaskPushNotificationConfig, error)
- func (UnimplementedA2AServiceServer) ListTaskPushNotificationConfig(context.Context, *ListTaskPushNotificationConfigRequest) (*ListTaskPushNotificationConfigResponse, error)
- func (UnimplementedA2AServiceServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
- func (UnimplementedA2AServiceServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
- func (UnimplementedA2AServiceServer) SendStreamingMessage(*SendMessageRequest, grpc.ServerStreamingServer[StreamResponse]) error
- func (UnimplementedA2AServiceServer) TaskSubscription(*TaskSubscriptionRequest, grpc.ServerStreamingServer[StreamResponse]) error
- type UnsafeA2AServiceServer
Constants ¶
const ( A2AService_SendMessage_FullMethodName = "/a2a.v1.A2AService/SendMessage" A2AService_SendStreamingMessage_FullMethodName = "/a2a.v1.A2AService/SendStreamingMessage" A2AService_GetTask_FullMethodName = "/a2a.v1.A2AService/GetTask" A2AService_ListTasks_FullMethodName = "/a2a.v1.A2AService/ListTasks" A2AService_CancelTask_FullMethodName = "/a2a.v1.A2AService/CancelTask" A2AService_TaskSubscription_FullMethodName = "/a2a.v1.A2AService/TaskSubscription" A2AService_CreateTaskPushNotificationConfig_FullMethodName = "/a2a.v1.A2AService/CreateTaskPushNotificationConfig" A2AService_GetTaskPushNotificationConfig_FullMethodName = "/a2a.v1.A2AService/GetTaskPushNotificationConfig" A2AService_ListTaskPushNotificationConfig_FullMethodName = "/a2a.v1.A2AService/ListTaskPushNotificationConfig" A2AService_GetAgentCard_FullMethodName = "/a2a.v1.A2AService/GetAgentCard" A2AService_DeleteTaskPushNotificationConfig_FullMethodName = "/a2a.v1.A2AService/DeleteTaskPushNotificationConfig" )
Variables ¶
var ( TaskState_name = map[int32]string{ 0: "TASK_STATE_UNSPECIFIED", 1: "TASK_STATE_SUBMITTED", 2: "TASK_STATE_WORKING", 3: "TASK_STATE_COMPLETED", 4: "TASK_STATE_FAILED", 5: "TASK_STATE_CANCELLED", 6: "TASK_STATE_INPUT_REQUIRED", 7: "TASK_STATE_REJECTED", 8: "TASK_STATE_AUTH_REQUIRED", } TaskState_value = map[string]int32{ "TASK_STATE_UNSPECIFIED": 0, "TASK_STATE_SUBMITTED": 1, "TASK_STATE_WORKING": 2, "TASK_STATE_COMPLETED": 3, "TASK_STATE_FAILED": 4, "TASK_STATE_CANCELLED": 5, "TASK_STATE_INPUT_REQUIRED": 6, "TASK_STATE_REJECTED": 7, "TASK_STATE_AUTH_REQUIRED": 8, } )
Enum value maps for TaskState.
var ( Role_name = map[int32]string{ 0: "ROLE_UNSPECIFIED", 1: "ROLE_USER", 2: "ROLE_AGENT", } Role_value = map[string]int32{ "ROLE_UNSPECIFIED": 0, "ROLE_USER": 1, "ROLE_AGENT": 2, } )
Enum value maps for Role.
var A2AService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "a2a.v1.A2AService", HandlerType: (*A2AServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendMessage", Handler: _A2AService_SendMessage_Handler, }, { MethodName: "GetTask", Handler: _A2AService_GetTask_Handler, }, { MethodName: "ListTasks", Handler: _A2AService_ListTasks_Handler, }, { MethodName: "CancelTask", Handler: _A2AService_CancelTask_Handler, }, { MethodName: "CreateTaskPushNotificationConfig", Handler: _A2AService_CreateTaskPushNotificationConfig_Handler, }, { MethodName: "GetTaskPushNotificationConfig", Handler: _A2AService_GetTaskPushNotificationConfig_Handler, }, { MethodName: "ListTaskPushNotificationConfig", Handler: _A2AService_ListTaskPushNotificationConfig_Handler, }, { MethodName: "GetAgentCard", Handler: _A2AService_GetAgentCard_Handler, }, { MethodName: "DeleteTaskPushNotificationConfig", Handler: _A2AService_DeleteTaskPushNotificationConfig_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SendStreamingMessage", Handler: _A2AService_SendStreamingMessage_Handler, ServerStreams: true, }, { StreamName: "TaskSubscription", Handler: _A2AService_TaskSubscription_Handler, ServerStreams: true, }, }, Metadata: "a2a.proto", }
A2AService_ServiceDesc is the grpc.ServiceDesc for A2AService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_a2a_proto protoreflect.FileDescriptor
Functions ¶
func RegisterA2AServiceServer ¶
func RegisterA2AServiceServer(s grpc.ServiceRegistrar, srv A2AServiceServer)
Types ¶
type A2AServiceClient ¶
type A2AServiceClient interface {
// Send a message to the agent. This is a blocking call that will return the
// task once it is completed, or a LRO if requested.
SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error)
// SendStreamingMessage is a streaming call that will return a stream of
// task update events until the Task is in an interrupted or terminal state.
SendStreamingMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error)
// Get the current state of a task from the agent.
GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error)
// List tasks with optional filtering and pagination.
ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error)
// Cancel a task from the agent. If supported one should expect no
// more task updates for the task.
CancelTask(ctx context.Context, in *CancelTaskRequest, opts ...grpc.CallOption) (*Task, error)
// TaskSubscription is a streaming call that will return a stream of task
// update events. This attaches the stream to an existing in process task.
// If the task is complete the stream will return the completed task (like
// GetTask) and close the stream.
TaskSubscription(ctx context.Context, in *TaskSubscriptionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error)
// Set a push notification config for a task.
CreateTaskPushNotificationConfig(ctx context.Context, in *CreateTaskPushNotificationConfigRequest, opts ...grpc.CallOption) (*TaskPushNotificationConfig, error)
// Get a push notification config for a task.
GetTaskPushNotificationConfig(ctx context.Context, in *GetTaskPushNotificationConfigRequest, opts ...grpc.CallOption) (*TaskPushNotificationConfig, error)
// Get a list of push notifications configured for a task.
ListTaskPushNotificationConfig(ctx context.Context, in *ListTaskPushNotificationConfigRequest, opts ...grpc.CallOption) (*ListTaskPushNotificationConfigResponse, error)
// GetAgentCard returns the agent card for the agent.
GetAgentCard(ctx context.Context, in *GetAgentCardRequest, opts ...grpc.CallOption) (*AgentCard, error)
// Delete a push notification config for a task.
DeleteTaskPushNotificationConfig(ctx context.Context, in *DeleteTaskPushNotificationConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
A2AServiceClient is the client API for A2AService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
A2AService defines the gRPC version of the A2A protocol. This has a slightly different shape than the JSONRPC version to better conform to AIP-127, where appropriate. The nouns are AgentCard, Message, Task and TaskPushNotificationConfig.
- Messages are not a standard resource so there is no get/delete/update/list interface, only a send and stream custom methods.
- Tasks have a get interface and custom cancel and subscribe methods.
- TaskPushNotificationConfig are a resource whose parent is a task. They have get, list and create methods.
- AgentCard is a static resource with only a get method.
func NewA2AServiceClient ¶
func NewA2AServiceClient(cc grpc.ClientConnInterface) A2AServiceClient
type A2AServiceServer ¶
type A2AServiceServer interface {
// Send a message to the agent. This is a blocking call that will return the
// task once it is completed, or a LRO if requested.
SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
// SendStreamingMessage is a streaming call that will return a stream of
// task update events until the Task is in an interrupted or terminal state.
SendStreamingMessage(*SendMessageRequest, grpc.ServerStreamingServer[StreamResponse]) error
// Get the current state of a task from the agent.
GetTask(context.Context, *GetTaskRequest) (*Task, error)
// List tasks with optional filtering and pagination.
ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
// Cancel a task from the agent. If supported one should expect no
// more task updates for the task.
CancelTask(context.Context, *CancelTaskRequest) (*Task, error)
// TaskSubscription is a streaming call that will return a stream of task
// update events. This attaches the stream to an existing in process task.
// If the task is complete the stream will return the completed task (like
// GetTask) and close the stream.
TaskSubscription(*TaskSubscriptionRequest, grpc.ServerStreamingServer[StreamResponse]) error
// Set a push notification config for a task.
CreateTaskPushNotificationConfig(context.Context, *CreateTaskPushNotificationConfigRequest) (*TaskPushNotificationConfig, error)
// Get a push notification config for a task.
GetTaskPushNotificationConfig(context.Context, *GetTaskPushNotificationConfigRequest) (*TaskPushNotificationConfig, error)
// Get a list of push notifications configured for a task.
ListTaskPushNotificationConfig(context.Context, *ListTaskPushNotificationConfigRequest) (*ListTaskPushNotificationConfigResponse, error)
// GetAgentCard returns the agent card for the agent.
GetAgentCard(context.Context, *GetAgentCardRequest) (*AgentCard, error)
// Delete a push notification config for a task.
DeleteTaskPushNotificationConfig(context.Context, *DeleteTaskPushNotificationConfigRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
A2AServiceServer is the server API for A2AService service. All implementations must embed UnimplementedA2AServiceServer for forward compatibility.
A2AService defines the gRPC version of the A2A protocol. This has a slightly different shape than the JSONRPC version to better conform to AIP-127, where appropriate. The nouns are AgentCard, Message, Task and TaskPushNotificationConfig.
- Messages are not a standard resource so there is no get/delete/update/list interface, only a send and stream custom methods.
- Tasks have a get interface and custom cancel and subscribe methods.
- TaskPushNotificationConfig are a resource whose parent is a task. They have get, list and create methods.
- AgentCard is a static resource with only a get method.
type A2AService_SendStreamingMessageClient ¶
type A2AService_SendStreamingMessageClient = grpc.ServerStreamingClient[StreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type A2AService_SendStreamingMessageServer ¶
type A2AService_SendStreamingMessageServer = grpc.ServerStreamingServer[StreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type A2AService_TaskSubscriptionClient ¶
type A2AService_TaskSubscriptionClient = grpc.ServerStreamingClient[StreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type A2AService_TaskSubscriptionServer ¶
type A2AService_TaskSubscriptionServer = grpc.ServerStreamingServer[StreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type APIKeySecurityScheme ¶
type APIKeySecurityScheme struct {
// Description of this security scheme.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Location of the API key, valid values are "query", "header", or "cookie"
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Name of the header, query or cookie parameter to be used.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:APIKeySecurityScheme]
func (*APIKeySecurityScheme) Descriptor
deprecated
func (*APIKeySecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use APIKeySecurityScheme.ProtoReflect.Descriptor instead.
func (*APIKeySecurityScheme) GetDescription ¶
func (x *APIKeySecurityScheme) GetDescription() string
func (*APIKeySecurityScheme) GetLocation ¶
func (x *APIKeySecurityScheme) GetLocation() string
func (*APIKeySecurityScheme) GetName ¶
func (x *APIKeySecurityScheme) GetName() string
func (*APIKeySecurityScheme) ProtoMessage ¶
func (*APIKeySecurityScheme) ProtoMessage()
func (*APIKeySecurityScheme) ProtoReflect ¶
func (x *APIKeySecurityScheme) ProtoReflect() protoreflect.Message
func (*APIKeySecurityScheme) Reset ¶
func (x *APIKeySecurityScheme) Reset()
func (*APIKeySecurityScheme) String ¶
func (x *APIKeySecurityScheme) String() string
type AgentCapabilities ¶
type AgentCapabilities struct {
// If the agent will support streaming responses
Streaming bool `protobuf:"varint,1,opt,name=streaming,proto3" json:"streaming,omitempty"`
// If the agent can send push notifications to the clients webhook
PushNotifications bool `protobuf:"varint,2,opt,name=push_notifications,json=pushNotifications,proto3" json:"push_notifications,omitempty"`
// Extensions supported by this agent.
Extensions []*AgentExtension `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
// If the agent provides a history of state transitions for a task.
StateTransitionHistory bool `` /* 130-byte string literal not displayed */
// contains filtered or unexported fields
}
--8<-- [start:AgentCapabilities] Defines the A2A feature set supported by the agent
func (*AgentCapabilities) Descriptor
deprecated
func (*AgentCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use AgentCapabilities.ProtoReflect.Descriptor instead.
func (*AgentCapabilities) GetExtensions ¶
func (x *AgentCapabilities) GetExtensions() []*AgentExtension
func (*AgentCapabilities) GetPushNotifications ¶
func (x *AgentCapabilities) GetPushNotifications() bool
func (*AgentCapabilities) GetStateTransitionHistory ¶
func (x *AgentCapabilities) GetStateTransitionHistory() bool
func (*AgentCapabilities) GetStreaming ¶
func (x *AgentCapabilities) GetStreaming() bool
func (*AgentCapabilities) ProtoMessage ¶
func (*AgentCapabilities) ProtoMessage()
func (*AgentCapabilities) ProtoReflect ¶
func (x *AgentCapabilities) ProtoReflect() protoreflect.Message
func (*AgentCapabilities) Reset ¶
func (x *AgentCapabilities) Reset()
func (*AgentCapabilities) String ¶
func (x *AgentCapabilities) String() string
type AgentCard ¶
type AgentCard struct {
// The version of the A2A protocol this agent supports.
ProtocolVersion string `protobuf:"bytes,16,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
// A human readable name for the agent.
// Example: "Recipe Agent"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A description of the agent's domain of action/solution space.
// Example: "Agent that helps users with recipes and cooking."
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// A URL to the address the agent is hosted at. This represents the
// preferred endpoint as declared by the agent.
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// The transport of the preferred endpoint. If empty, defaults to JSONRPC.
PreferredTransport string `protobuf:"bytes,14,opt,name=preferred_transport,json=preferredTransport,proto3" json:"preferred_transport,omitempty"`
// Announcement of additional supported transports. Client can use any of
// the supported transports.
AdditionalInterfaces []*AgentInterface `protobuf:"bytes,15,rep,name=additional_interfaces,json=additionalInterfaces,proto3" json:"additional_interfaces,omitempty"`
// The service provider of the agent.
Provider *AgentProvider `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"`
// The version of the agent.
// Example: "1.0.0"
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
// A url to provide additional documentation about the agent.
DocumentationUrl string `protobuf:"bytes,6,opt,name=documentation_url,json=documentationUrl,proto3" json:"documentation_url,omitempty"`
// A2A Capability set supported by the agent.
Capabilities *AgentCapabilities `protobuf:"bytes,7,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
// The security scheme details used for authenticating with this agent.
SecuritySchemes map[string]*SecurityScheme `` /* 180-byte string literal not displayed */
// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
// Security requirements for contacting the agent.
// This list can be seen as an OR of ANDs. Each object in the list describes
// one possible set of security requirements that must be present on a
// request. This allows specifying, for example, "callers must either use
// OAuth OR an API Key AND mTLS."
// Example:
//
// security {
// schemes { key: "oauth" value { list: ["read"] } }
// }
//
// security {
// schemes { key: "api-key" }
// schemes { key: "mtls" }
// }
Security []*Security `protobuf:"bytes,9,rep,name=security,proto3" json:"security,omitempty"`
// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
// The set of interaction modes that the agent supports across all skills.
// This can be overridden per skill. Defined as mime types.
DefaultInputModes []string `protobuf:"bytes,10,rep,name=default_input_modes,json=defaultInputModes,proto3" json:"default_input_modes,omitempty"`
// The mime types supported as outputs from this agent.
DefaultOutputModes []string `protobuf:"bytes,11,rep,name=default_output_modes,json=defaultOutputModes,proto3" json:"default_output_modes,omitempty"`
// Skills represent a unit of ability an agent can perform. This may
// somewhat abstract but represents a more focused set of actions that the
// agent is highly likely to succeed at.
Skills []*AgentSkill `protobuf:"bytes,12,rep,name=skills,proto3" json:"skills,omitempty"`
// Whether the agent supports providing an extended agent card when
// the user is authenticated, i.e. is the card from .well-known
// different than the card from GetAgentCard.
SupportsAuthenticatedExtendedCard bool `` /* 166-byte string literal not displayed */
// JSON Web Signatures computed for this AgentCard.
Signatures []*AgentCardSignature `protobuf:"bytes,17,rep,name=signatures,proto3" json:"signatures,omitempty"`
// An optional URL to an icon for the agent.
IconUrl string `protobuf:"bytes,18,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:AgentCard] AgentCard conveys key information: - Overall details (version, name, description, uses) - Skills; a set of actions/solutions the agent can perform - Default modalities/content types supported by the agent. - Authentication requirements Next ID: 19
func (*AgentCard) Descriptor
deprecated
func (*AgentCard) GetAdditionalInterfaces ¶
func (x *AgentCard) GetAdditionalInterfaces() []*AgentInterface
func (*AgentCard) GetCapabilities ¶
func (x *AgentCard) GetCapabilities() *AgentCapabilities
func (*AgentCard) GetDefaultInputModes ¶
func (*AgentCard) GetDefaultOutputModes ¶
func (*AgentCard) GetDescription ¶
func (*AgentCard) GetDocumentationUrl ¶
func (*AgentCard) GetIconUrl ¶
func (*AgentCard) GetPreferredTransport ¶
func (*AgentCard) GetProtocolVersion ¶
func (*AgentCard) GetProvider ¶
func (x *AgentCard) GetProvider() *AgentProvider
func (*AgentCard) GetSecurity ¶
func (*AgentCard) GetSecuritySchemes ¶
func (x *AgentCard) GetSecuritySchemes() map[string]*SecurityScheme
func (*AgentCard) GetSignatures ¶
func (x *AgentCard) GetSignatures() []*AgentCardSignature
func (*AgentCard) GetSkills ¶
func (x *AgentCard) GetSkills() []*AgentSkill
func (*AgentCard) GetSupportsAuthenticatedExtendedCard ¶
func (*AgentCard) GetVersion ¶
func (*AgentCard) ProtoMessage ¶
func (*AgentCard) ProtoMessage()
func (*AgentCard) ProtoReflect ¶
func (x *AgentCard) ProtoReflect() protoreflect.Message
type AgentCardSignature ¶
type AgentCardSignature struct {
// The protected JWS header for the signature. This is always a
// base64url-encoded JSON object. Required.
Protected string `protobuf:"bytes,1,opt,name=protected,proto3" json:"protected,omitempty"`
// The computed signature, base64url-encoded. Required.
Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// The unprotected JWS header values.
Header *structpb.Struct `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:AgentCardSignature] AgentCardSignature represents a JWS signature of an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).
func (*AgentCardSignature) Descriptor
deprecated
func (*AgentCardSignature) Descriptor() ([]byte, []int)
Deprecated: Use AgentCardSignature.ProtoReflect.Descriptor instead.
func (*AgentCardSignature) GetHeader ¶
func (x *AgentCardSignature) GetHeader() *structpb.Struct
func (*AgentCardSignature) GetProtected ¶
func (x *AgentCardSignature) GetProtected() string
func (*AgentCardSignature) GetSignature ¶
func (x *AgentCardSignature) GetSignature() string
func (*AgentCardSignature) ProtoMessage ¶
func (*AgentCardSignature) ProtoMessage()
func (*AgentCardSignature) ProtoReflect ¶
func (x *AgentCardSignature) ProtoReflect() protoreflect.Message
func (*AgentCardSignature) Reset ¶
func (x *AgentCardSignature) Reset()
func (*AgentCardSignature) String ¶
func (x *AgentCardSignature) String() string
type AgentExtension ¶
type AgentExtension struct {
// The URI of the extension.
// Example: "https://developers.google.com/identity/protocols/oauth2"
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// A description of how this agent uses this extension.
// Example: "Google OAuth 2.0 authentication"
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Whether the client must follow specific requirements of the extension.
// Example: false
Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
// Optional configuration for the extension.
Params *structpb.Struct `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:AgentExtension] A declaration of an extension supported by an Agent.
func (*AgentExtension) Descriptor
deprecated
func (*AgentExtension) Descriptor() ([]byte, []int)
Deprecated: Use AgentExtension.ProtoReflect.Descriptor instead.
func (*AgentExtension) GetDescription ¶
func (x *AgentExtension) GetDescription() string
func (*AgentExtension) GetParams ¶
func (x *AgentExtension) GetParams() *structpb.Struct
func (*AgentExtension) GetRequired ¶
func (x *AgentExtension) GetRequired() bool
func (*AgentExtension) GetUri ¶
func (x *AgentExtension) GetUri() string
func (*AgentExtension) ProtoMessage ¶
func (*AgentExtension) ProtoMessage()
func (*AgentExtension) ProtoReflect ¶
func (x *AgentExtension) ProtoReflect() protoreflect.Message
func (*AgentExtension) Reset ¶
func (x *AgentExtension) Reset()
func (*AgentExtension) String ¶
func (x *AgentExtension) String() string
type AgentInterface ¶
type AgentInterface struct {
// The url this interface is found at.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// The transport supported this url. This is an open form string, to be
// easily extended for many transport protocols. The core ones officially
// supported are JSONRPC, GRPC and HTTP+JSON.
Transport string `protobuf:"bytes,2,opt,name=transport,proto3" json:"transport,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:AgentInterface] Defines additional transport information for the agent.
func (*AgentInterface) Descriptor
deprecated
func (*AgentInterface) Descriptor() ([]byte, []int)
Deprecated: Use AgentInterface.ProtoReflect.Descriptor instead.
func (*AgentInterface) GetTransport ¶
func (x *AgentInterface) GetTransport() string
func (*AgentInterface) GetUrl ¶
func (x *AgentInterface) GetUrl() string
func (*AgentInterface) ProtoMessage ¶
func (*AgentInterface) ProtoMessage()
func (*AgentInterface) ProtoReflect ¶
func (x *AgentInterface) ProtoReflect() protoreflect.Message
func (*AgentInterface) Reset ¶
func (x *AgentInterface) Reset()
func (*AgentInterface) String ¶
func (x *AgentInterface) String() string
type AgentProvider ¶
type AgentProvider struct {
// The providers reference url
// Example: "https://ai.google.dev"
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// The providers organization name
// Example: "Google"
Organization string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:AgentProvider] Represents information about the service provider of an agent.
func (*AgentProvider) Descriptor
deprecated
func (*AgentProvider) Descriptor() ([]byte, []int)
Deprecated: Use AgentProvider.ProtoReflect.Descriptor instead.
func (*AgentProvider) GetOrganization ¶
func (x *AgentProvider) GetOrganization() string
func (*AgentProvider) GetUrl ¶
func (x *AgentProvider) GetUrl() string
func (*AgentProvider) ProtoMessage ¶
func (*AgentProvider) ProtoMessage()
func (*AgentProvider) ProtoReflect ¶
func (x *AgentProvider) ProtoReflect() protoreflect.Message
func (*AgentProvider) Reset ¶
func (x *AgentProvider) Reset()
func (*AgentProvider) String ¶
func (x *AgentProvider) String() string
type AgentSkill ¶
type AgentSkill struct {
// Unique identifier of the skill within this agent.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// A human readable name for the skill.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A human (or llm) readable description of the skill
// details and behaviors.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// A set of tags for the skill to enhance categorization/utilization.
// Example: ["cooking", "customer support", "billing"]
Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
// A set of example queries that this skill is designed to address.
// These examples should help the caller to understand how to craft requests
// to the agent to achieve specific goals.
// Example: ["I need a recipe for bread"]
Examples []string `protobuf:"bytes,5,rep,name=examples,proto3" json:"examples,omitempty"`
// Possible input modalities supported.
InputModes []string `protobuf:"bytes,6,rep,name=input_modes,json=inputModes,proto3" json:"input_modes,omitempty"`
// Possible output modalities produced
OutputModes []string `protobuf:"bytes,7,rep,name=output_modes,json=outputModes,proto3" json:"output_modes,omitempty"`
// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
// Security schemes necessary for the agent to leverage this skill.
// As in the overall AgentCard.security, this list represents a logical OR of
// security requirement objects. Each object is a set of security schemes
// that must be used together (a logical AND).
Security []*Security `protobuf:"bytes,8,rep,name=security,proto3" json:"security,omitempty"` // protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
// contains filtered or unexported fields
}
--8<-- [start:AgentSkill] AgentSkill represents a unit of action/solution that the agent can perform. One can think of this as a type of highly reliable solution that an agent can be tasked to provide. Agents have the autonomy to choose how and when to use specific skills, but clients should have confidence that if the skill is defined that unit of action can be reliably performed.
func (*AgentSkill) Descriptor
deprecated
func (*AgentSkill) Descriptor() ([]byte, []int)
Deprecated: Use AgentSkill.ProtoReflect.Descriptor instead.
func (*AgentSkill) GetDescription ¶
func (x *AgentSkill) GetDescription() string
func (*AgentSkill) GetExamples ¶
func (x *AgentSkill) GetExamples() []string
func (*AgentSkill) GetId ¶
func (x *AgentSkill) GetId() string
func (*AgentSkill) GetInputModes ¶
func (x *AgentSkill) GetInputModes() []string
func (*AgentSkill) GetName ¶
func (x *AgentSkill) GetName() string
func (*AgentSkill) GetOutputModes ¶
func (x *AgentSkill) GetOutputModes() []string
func (*AgentSkill) GetSecurity ¶
func (x *AgentSkill) GetSecurity() []*Security
func (*AgentSkill) GetTags ¶
func (x *AgentSkill) GetTags() []string
func (*AgentSkill) ProtoMessage ¶
func (*AgentSkill) ProtoMessage()
func (*AgentSkill) ProtoReflect ¶
func (x *AgentSkill) ProtoReflect() protoreflect.Message
func (*AgentSkill) Reset ¶
func (x *AgentSkill) Reset()
func (*AgentSkill) String ¶
func (x *AgentSkill) String() string
type Artifact ¶
type Artifact struct {
// Unique identifier (e.g. UUID) for the artifact. It must be at least unique
// within a task.
ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
// A human readable name for the artifact.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// A human readable description of the artifact, optional.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// The content of the artifact.
Parts []*Part `protobuf:"bytes,5,rep,name=parts,proto3" json:"parts,omitempty"`
// Optional metadata included with the artifact.
Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// The URIs of extensions that are present or contributed to this Artifact.
Extensions []string `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:Artifact] Artifacts are the container for task completed results. These are similar to Messages but are intended to be the product of a task, as opposed to point-to-point communication.
func (*Artifact) Descriptor
deprecated
func (*Artifact) GetArtifactId ¶
func (*Artifact) GetDescription ¶
func (*Artifact) GetExtensions ¶
func (*Artifact) GetMetadata ¶
func (*Artifact) ProtoMessage ¶
func (*Artifact) ProtoMessage()
func (*Artifact) ProtoReflect ¶
func (x *Artifact) ProtoReflect() protoreflect.Message
type AuthenticationInfo ¶
type AuthenticationInfo struct {
// Supported authentication schemes - e.g. Basic, Bearer, etc
Schemes []string `protobuf:"bytes,1,rep,name=schemes,proto3" json:"schemes,omitempty"`
// Optional credentials
Credentials string `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:PushNotificationAuthenticationInfo] Defines authentication details, used for push notifications.
func (*AuthenticationInfo) Descriptor
deprecated
func (*AuthenticationInfo) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationInfo.ProtoReflect.Descriptor instead.
func (*AuthenticationInfo) GetCredentials ¶
func (x *AuthenticationInfo) GetCredentials() string
func (*AuthenticationInfo) GetSchemes ¶
func (x *AuthenticationInfo) GetSchemes() []string
func (*AuthenticationInfo) ProtoMessage ¶
func (*AuthenticationInfo) ProtoMessage()
func (*AuthenticationInfo) ProtoReflect ¶
func (x *AuthenticationInfo) ProtoReflect() protoreflect.Message
func (*AuthenticationInfo) Reset ¶
func (x *AuthenticationInfo) Reset()
func (*AuthenticationInfo) String ¶
func (x *AuthenticationInfo) String() string
type AuthorizationCodeOAuthFlow ¶
type AuthorizationCodeOAuthFlow struct {
// The authorization URL to be used for this flow. This MUST be in the
// form of a URL. The OAuth2 standard requires the use of TLS
AuthorizationUrl string `protobuf:"bytes,1,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"`
// The token URL to be used for this flow. This MUST be in the form of a URL.
// The OAuth2 standard requires the use of TLS.
TokenUrl string `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
// The URL to be used for obtaining refresh tokens. This MUST be in the
// form of a URL. The OAuth2 standard requires the use of TLS.
RefreshUrl string `protobuf:"bytes,3,opt,name=refresh_url,json=refreshUrl,proto3" json:"refresh_url,omitempty"`
// The available scopes for the OAuth2 security scheme. A map between the
// scope name and a short description for it. The map MAY be empty.
Scopes map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
--8<-- [start:AuthorizationCodeOAuthFlow]
func (*AuthorizationCodeOAuthFlow) Descriptor
deprecated
func (*AuthorizationCodeOAuthFlow) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizationCodeOAuthFlow.ProtoReflect.Descriptor instead.
func (*AuthorizationCodeOAuthFlow) GetAuthorizationUrl ¶
func (x *AuthorizationCodeOAuthFlow) GetAuthorizationUrl() string
func (*AuthorizationCodeOAuthFlow) GetRefreshUrl ¶
func (x *AuthorizationCodeOAuthFlow) GetRefreshUrl() string
func (*AuthorizationCodeOAuthFlow) GetScopes ¶
func (x *AuthorizationCodeOAuthFlow) GetScopes() map[string]string
func (*AuthorizationCodeOAuthFlow) GetTokenUrl ¶
func (x *AuthorizationCodeOAuthFlow) GetTokenUrl() string
func (*AuthorizationCodeOAuthFlow) ProtoMessage ¶
func (*AuthorizationCodeOAuthFlow) ProtoMessage()
func (*AuthorizationCodeOAuthFlow) ProtoReflect ¶
func (x *AuthorizationCodeOAuthFlow) ProtoReflect() protoreflect.Message
func (*AuthorizationCodeOAuthFlow) Reset ¶
func (x *AuthorizationCodeOAuthFlow) Reset()
func (*AuthorizationCodeOAuthFlow) String ¶
func (x *AuthorizationCodeOAuthFlow) String() string
type CancelTaskRequest ¶
type CancelTaskRequest struct {
// The resource name of the task to cancel.
// Format: tasks/{task_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:CancelTaskRequest]
func (*CancelTaskRequest) Descriptor
deprecated
func (*CancelTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelTaskRequest.ProtoReflect.Descriptor instead.
func (*CancelTaskRequest) GetName ¶
func (x *CancelTaskRequest) GetName() string
func (*CancelTaskRequest) ProtoMessage ¶
func (*CancelTaskRequest) ProtoMessage()
func (*CancelTaskRequest) ProtoReflect ¶
func (x *CancelTaskRequest) ProtoReflect() protoreflect.Message
func (*CancelTaskRequest) Reset ¶
func (x *CancelTaskRequest) Reset()
func (*CancelTaskRequest) String ¶
func (x *CancelTaskRequest) String() string
type ClientCredentialsOAuthFlow ¶
type ClientCredentialsOAuthFlow struct {
// The token URL to be used for this flow. This MUST be in the form of a URL.
// The OAuth2 standard requires the use of TLS.
TokenUrl string `protobuf:"bytes,1,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
// The URL to be used for obtaining refresh tokens. This MUST be in the
// form of a URL. The OAuth2 standard requires the use of TLS.
RefreshUrl string `protobuf:"bytes,2,opt,name=refresh_url,json=refreshUrl,proto3" json:"refresh_url,omitempty"`
// The available scopes for the OAuth2 security scheme. A map between the
// scope name and a short description for it. The map MAY be empty.
Scopes map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
--8<-- [start:ClientCredentialsOAuthFlow]
func (*ClientCredentialsOAuthFlow) Descriptor
deprecated
func (*ClientCredentialsOAuthFlow) Descriptor() ([]byte, []int)
Deprecated: Use ClientCredentialsOAuthFlow.ProtoReflect.Descriptor instead.
func (*ClientCredentialsOAuthFlow) GetRefreshUrl ¶
func (x *ClientCredentialsOAuthFlow) GetRefreshUrl() string
func (*ClientCredentialsOAuthFlow) GetScopes ¶
func (x *ClientCredentialsOAuthFlow) GetScopes() map[string]string
func (*ClientCredentialsOAuthFlow) GetTokenUrl ¶
func (x *ClientCredentialsOAuthFlow) GetTokenUrl() string
func (*ClientCredentialsOAuthFlow) ProtoMessage ¶
func (*ClientCredentialsOAuthFlow) ProtoMessage()
func (*ClientCredentialsOAuthFlow) ProtoReflect ¶
func (x *ClientCredentialsOAuthFlow) ProtoReflect() protoreflect.Message
func (*ClientCredentialsOAuthFlow) Reset ¶
func (x *ClientCredentialsOAuthFlow) Reset()
func (*ClientCredentialsOAuthFlow) String ¶
func (x *ClientCredentialsOAuthFlow) String() string
type CreateTaskPushNotificationConfigRequest ¶
type CreateTaskPushNotificationConfigRequest struct {
// The parent task resource for this config.
// Format: tasks/{task_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The ID for the new config.
ConfigId string `protobuf:"bytes,2,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
// The configuration to create.
Config *TaskPushNotificationConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:SetTaskPushNotificationConfigRequest]
func (*CreateTaskPushNotificationConfigRequest) Descriptor
deprecated
func (*CreateTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTaskPushNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateTaskPushNotificationConfigRequest) GetConfig ¶
func (x *CreateTaskPushNotificationConfigRequest) GetConfig() *TaskPushNotificationConfig
func (*CreateTaskPushNotificationConfigRequest) GetConfigId ¶
func (x *CreateTaskPushNotificationConfigRequest) GetConfigId() string
func (*CreateTaskPushNotificationConfigRequest) GetParent ¶
func (x *CreateTaskPushNotificationConfigRequest) GetParent() string
func (*CreateTaskPushNotificationConfigRequest) ProtoMessage ¶
func (*CreateTaskPushNotificationConfigRequest) ProtoMessage()
func (*CreateTaskPushNotificationConfigRequest) ProtoReflect ¶
func (x *CreateTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*CreateTaskPushNotificationConfigRequest) Reset ¶
func (x *CreateTaskPushNotificationConfigRequest) Reset()
func (*CreateTaskPushNotificationConfigRequest) String ¶
func (x *CreateTaskPushNotificationConfigRequest) String() string
type DataPart ¶
type DataPart struct {
Data *structpb.Struct `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:DataPart] DataPart represents a structured blob. This is most commonly a JSON payload.
func (*DataPart) Descriptor
deprecated
func (*DataPart) ProtoMessage ¶
func (*DataPart) ProtoMessage()
func (*DataPart) ProtoReflect ¶
func (x *DataPart) ProtoReflect() protoreflect.Message
type DeleteTaskPushNotificationConfigRequest ¶
type DeleteTaskPushNotificationConfigRequest struct {
// The resource name of the config to delete.
// Format: tasks/{task_id}/pushNotificationConfigs/{config_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:DeleteTaskPushNotificationConfigRequest]
func (*DeleteTaskPushNotificationConfigRequest) Descriptor
deprecated
func (*DeleteTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTaskPushNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteTaskPushNotificationConfigRequest) GetName ¶
func (x *DeleteTaskPushNotificationConfigRequest) GetName() string
func (*DeleteTaskPushNotificationConfigRequest) ProtoMessage ¶
func (*DeleteTaskPushNotificationConfigRequest) ProtoMessage()
func (*DeleteTaskPushNotificationConfigRequest) ProtoReflect ¶
func (x *DeleteTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*DeleteTaskPushNotificationConfigRequest) Reset ¶
func (x *DeleteTaskPushNotificationConfigRequest) Reset()
func (*DeleteTaskPushNotificationConfigRequest) String ¶
func (x *DeleteTaskPushNotificationConfigRequest) String() string
type FilePart ¶
type FilePart struct {
// Types that are valid to be assigned to File:
//
// *FilePart_FileWithUri
// *FilePart_FileWithBytes
File isFilePart_File `protobuf_oneof:"file"`
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:FilePart] FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via file_with_bytes. If the file is large, the agent should read the content as appropriate directly from the file_with_uri source.
func (*FilePart) Descriptor
deprecated
func (*FilePart) GetFileWithBytes ¶
func (*FilePart) GetFileWithUri ¶
func (*FilePart) GetMimeType ¶
func (*FilePart) ProtoMessage ¶
func (*FilePart) ProtoMessage()
func (*FilePart) ProtoReflect ¶
func (x *FilePart) ProtoReflect() protoreflect.Message
type FilePart_FileWithBytes ¶
type FilePart_FileWithBytes struct {
FileWithBytes []byte `protobuf:"bytes,2,opt,name=file_with_bytes,json=fileWithBytes,proto3,oneof"`
}
type FilePart_FileWithUri ¶
type FilePart_FileWithUri struct {
FileWithUri string `protobuf:"bytes,1,opt,name=file_with_uri,json=fileWithUri,proto3,oneof"`
}
type GetAgentCardRequest ¶
type GetAgentCardRequest struct {
// contains filtered or unexported fields
}
--8<-- [start:GetAuthenticatedExtendedCardRequest]
func (*GetAgentCardRequest) Descriptor
deprecated
func (*GetAgentCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentCardRequest.ProtoReflect.Descriptor instead.
func (*GetAgentCardRequest) ProtoMessage ¶
func (*GetAgentCardRequest) ProtoMessage()
func (*GetAgentCardRequest) ProtoReflect ¶
func (x *GetAgentCardRequest) ProtoReflect() protoreflect.Message
func (*GetAgentCardRequest) Reset ¶
func (x *GetAgentCardRequest) Reset()
func (*GetAgentCardRequest) String ¶
func (x *GetAgentCardRequest) String() string
type GetTaskPushNotificationConfigRequest ¶
type GetTaskPushNotificationConfigRequest struct {
// The resource name of the config to retrieve.
// Format: tasks/{task_id}/pushNotificationConfigs/{config_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:GetTaskPushNotificationConfigRequest]
func (*GetTaskPushNotificationConfigRequest) Descriptor
deprecated
func (*GetTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTaskPushNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*GetTaskPushNotificationConfigRequest) GetName ¶
func (x *GetTaskPushNotificationConfigRequest) GetName() string
func (*GetTaskPushNotificationConfigRequest) ProtoMessage ¶
func (*GetTaskPushNotificationConfigRequest) ProtoMessage()
func (*GetTaskPushNotificationConfigRequest) ProtoReflect ¶
func (x *GetTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*GetTaskPushNotificationConfigRequest) Reset ¶
func (x *GetTaskPushNotificationConfigRequest) Reset()
func (*GetTaskPushNotificationConfigRequest) String ¶
func (x *GetTaskPushNotificationConfigRequest) String() string
type GetTaskRequest ¶
type GetTaskRequest struct {
// The resource name of the task.
// Format: tasks/{task_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The number of most recent messages from the task's history to retrieve.
HistoryLength int32 `protobuf:"varint,2,opt,name=history_length,json=historyLength,proto3" json:"history_length,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:GetTaskRequest]
func (*GetTaskRequest) Descriptor
deprecated
func (*GetTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead.
func (*GetTaskRequest) GetHistoryLength ¶
func (x *GetTaskRequest) GetHistoryLength() int32
func (*GetTaskRequest) GetName ¶
func (x *GetTaskRequest) GetName() string
func (*GetTaskRequest) ProtoMessage ¶
func (*GetTaskRequest) ProtoMessage()
func (*GetTaskRequest) ProtoReflect ¶
func (x *GetTaskRequest) ProtoReflect() protoreflect.Message
func (*GetTaskRequest) Reset ¶
func (x *GetTaskRequest) Reset()
func (*GetTaskRequest) String ¶
func (x *GetTaskRequest) String() string
type HTTPAuthSecurityScheme ¶
type HTTPAuthSecurityScheme struct {
// Description of this security scheme.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// The name of the HTTP Authentication scheme to be used in the
// Authorization header as defined in RFC7235. The values used SHOULD be
// registered in the IANA Authentication Scheme registry.
// The value is case-insensitive, as defined in RFC7235.
Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
// A hint to the client to identify how the bearer token is formatted.
// Bearer tokens are usually generated by an authorization server, so
// this information is primarily for documentation purposes.
BearerFormat string `protobuf:"bytes,3,opt,name=bearer_format,json=bearerFormat,proto3" json:"bearer_format,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:HTTPAuthSecurityScheme]
func (*HTTPAuthSecurityScheme) Descriptor
deprecated
func (*HTTPAuthSecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use HTTPAuthSecurityScheme.ProtoReflect.Descriptor instead.
func (*HTTPAuthSecurityScheme) GetBearerFormat ¶
func (x *HTTPAuthSecurityScheme) GetBearerFormat() string
func (*HTTPAuthSecurityScheme) GetDescription ¶
func (x *HTTPAuthSecurityScheme) GetDescription() string
func (*HTTPAuthSecurityScheme) GetScheme ¶
func (x *HTTPAuthSecurityScheme) GetScheme() string
func (*HTTPAuthSecurityScheme) ProtoMessage ¶
func (*HTTPAuthSecurityScheme) ProtoMessage()
func (*HTTPAuthSecurityScheme) ProtoReflect ¶
func (x *HTTPAuthSecurityScheme) ProtoReflect() protoreflect.Message
func (*HTTPAuthSecurityScheme) Reset ¶
func (x *HTTPAuthSecurityScheme) Reset()
func (*HTTPAuthSecurityScheme) String ¶
func (x *HTTPAuthSecurityScheme) String() string
type ImplicitOAuthFlow ¶
type ImplicitOAuthFlow struct {
// The authorization URL to be used for this flow. This MUST be in the
// form of a URL. The OAuth2 standard requires the use of TLS
AuthorizationUrl string `protobuf:"bytes,1,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"`
// The URL to be used for obtaining refresh tokens. This MUST be in the
// form of a URL. The OAuth2 standard requires the use of TLS.
RefreshUrl string `protobuf:"bytes,2,opt,name=refresh_url,json=refreshUrl,proto3" json:"refresh_url,omitempty"`
// The available scopes for the OAuth2 security scheme. A map between the
// scope name and a short description for it. The map MAY be empty.
Scopes map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
--8<-- [start:ImplicitOAuthFlow]
func (*ImplicitOAuthFlow) Descriptor
deprecated
func (*ImplicitOAuthFlow) Descriptor() ([]byte, []int)
Deprecated: Use ImplicitOAuthFlow.ProtoReflect.Descriptor instead.
func (*ImplicitOAuthFlow) GetAuthorizationUrl ¶
func (x *ImplicitOAuthFlow) GetAuthorizationUrl() string
func (*ImplicitOAuthFlow) GetRefreshUrl ¶
func (x *ImplicitOAuthFlow) GetRefreshUrl() string
func (*ImplicitOAuthFlow) GetScopes ¶
func (x *ImplicitOAuthFlow) GetScopes() map[string]string
func (*ImplicitOAuthFlow) ProtoMessage ¶
func (*ImplicitOAuthFlow) ProtoMessage()
func (*ImplicitOAuthFlow) ProtoReflect ¶
func (x *ImplicitOAuthFlow) ProtoReflect() protoreflect.Message
func (*ImplicitOAuthFlow) Reset ¶
func (x *ImplicitOAuthFlow) Reset()
func (*ImplicitOAuthFlow) String ¶
func (x *ImplicitOAuthFlow) String() string
type ListTaskPushNotificationConfigRequest ¶
type ListTaskPushNotificationConfigRequest struct {
// The parent task resource.
// Format: tasks/{task_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// For AIP-158 these fields are present. Usually not used/needed.
// The maximum number of configurations to return.
// If unspecified, all configs will be returned.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token received from a previous
// ListTaskPushNotificationConfigRequest call.
// Provide this to retrieve the subsequent page.
// When paginating, all other parameters provided to
// `ListTaskPushNotificationConfigRequest` must match the call that provided
// the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:ListTaskPushNotificationConfigRequest]
func (*ListTaskPushNotificationConfigRequest) Descriptor
deprecated
func (*ListTaskPushNotificationConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTaskPushNotificationConfigRequest.ProtoReflect.Descriptor instead.
func (*ListTaskPushNotificationConfigRequest) GetPageSize ¶
func (x *ListTaskPushNotificationConfigRequest) GetPageSize() int32
func (*ListTaskPushNotificationConfigRequest) GetPageToken ¶
func (x *ListTaskPushNotificationConfigRequest) GetPageToken() string
func (*ListTaskPushNotificationConfigRequest) GetParent ¶
func (x *ListTaskPushNotificationConfigRequest) GetParent() string
func (*ListTaskPushNotificationConfigRequest) ProtoMessage ¶
func (*ListTaskPushNotificationConfigRequest) ProtoMessage()
func (*ListTaskPushNotificationConfigRequest) ProtoReflect ¶
func (x *ListTaskPushNotificationConfigRequest) ProtoReflect() protoreflect.Message
func (*ListTaskPushNotificationConfigRequest) Reset ¶
func (x *ListTaskPushNotificationConfigRequest) Reset()
func (*ListTaskPushNotificationConfigRequest) String ¶
func (x *ListTaskPushNotificationConfigRequest) String() string
type ListTaskPushNotificationConfigResponse ¶
type ListTaskPushNotificationConfigResponse struct {
// The list of push notification configurations.
Configs []*TaskPushNotificationConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:ListTaskPushNotificationConfigSuccessResponse]
func (*ListTaskPushNotificationConfigResponse) Descriptor
deprecated
func (*ListTaskPushNotificationConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTaskPushNotificationConfigResponse.ProtoReflect.Descriptor instead.
func (*ListTaskPushNotificationConfigResponse) GetConfigs ¶
func (x *ListTaskPushNotificationConfigResponse) GetConfigs() []*TaskPushNotificationConfig
func (*ListTaskPushNotificationConfigResponse) GetNextPageToken ¶
func (x *ListTaskPushNotificationConfigResponse) GetNextPageToken() string
func (*ListTaskPushNotificationConfigResponse) ProtoMessage ¶
func (*ListTaskPushNotificationConfigResponse) ProtoMessage()
func (*ListTaskPushNotificationConfigResponse) ProtoReflect ¶
func (x *ListTaskPushNotificationConfigResponse) ProtoReflect() protoreflect.Message
func (*ListTaskPushNotificationConfigResponse) Reset ¶
func (x *ListTaskPushNotificationConfigResponse) Reset()
func (*ListTaskPushNotificationConfigResponse) String ¶
func (x *ListTaskPushNotificationConfigResponse) String() string
type ListTasksRequest ¶
type ListTasksRequest struct {
// Filter tasks by context ID to get tasks from a specific conversation
// or session.
ContextId string `protobuf:"bytes,1,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
// Filter tasks by their current status state.
Status TaskState `protobuf:"varint,2,opt,name=status,proto3,enum=a2a.v1.TaskState" json:"status,omitempty"`
// Maximum number of tasks to return. Must be between 1 and 100.
// Defaults to 50 if not specified.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Token for pagination. Use the next_page_token from a previous
// ListTasksResponse.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Number of recent messages to include in each task's history.
// Must be non-negative. Defaults to 0 if not specified.
HistoryLength int32 `protobuf:"varint,5,opt,name=history_length,json=historyLength,proto3" json:"history_length,omitempty"`
// Filter tasks updated after this timestamp. Only tasks with a last
// updated time greater than or equal to this value will be returned.
LastUpdatedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_updated_time,json=lastUpdatedTime,proto3" json:"last_updated_time,omitempty"`
// Whether to include artifacts in the returned tasks.
// Defaults to false to reduce payload size.
IncludeArtifacts bool `protobuf:"varint,7,opt,name=include_artifacts,json=includeArtifacts,proto3" json:"include_artifacts,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:ListTasksRequest]
func (*ListTasksRequest) Descriptor
deprecated
func (*ListTasksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.
func (*ListTasksRequest) GetContextId ¶
func (x *ListTasksRequest) GetContextId() string
func (*ListTasksRequest) GetHistoryLength ¶
func (x *ListTasksRequest) GetHistoryLength() int32
func (*ListTasksRequest) GetIncludeArtifacts ¶
func (x *ListTasksRequest) GetIncludeArtifacts() bool
func (*ListTasksRequest) GetLastUpdatedTime ¶
func (x *ListTasksRequest) GetLastUpdatedTime() *timestamppb.Timestamp
func (*ListTasksRequest) GetPageSize ¶
func (x *ListTasksRequest) GetPageSize() int32
func (*ListTasksRequest) GetPageToken ¶
func (x *ListTasksRequest) GetPageToken() string
func (*ListTasksRequest) GetStatus ¶
func (x *ListTasksRequest) GetStatus() TaskState
func (*ListTasksRequest) ProtoMessage ¶
func (*ListTasksRequest) ProtoMessage()
func (*ListTasksRequest) ProtoReflect ¶
func (x *ListTasksRequest) ProtoReflect() protoreflect.Message
func (*ListTasksRequest) Reset ¶
func (x *ListTasksRequest) Reset()
func (*ListTasksRequest) String ¶
func (x *ListTasksRequest) String() string
type ListTasksResponse ¶
type ListTasksResponse struct {
// Array of tasks matching the specified criteria.
Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
// Token for retrieving the next page of results.
// Empty string if no more results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Total number of tasks available (before pagination).
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:ListTasksResponse]
func (*ListTasksResponse) Descriptor
deprecated
func (*ListTasksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.
func (*ListTasksResponse) GetNextPageToken ¶
func (x *ListTasksResponse) GetNextPageToken() string
func (*ListTasksResponse) GetTasks ¶
func (x *ListTasksResponse) GetTasks() []*Task
func (*ListTasksResponse) GetTotalSize ¶
func (x *ListTasksResponse) GetTotalSize() int32
func (*ListTasksResponse) ProtoMessage ¶
func (*ListTasksResponse) ProtoMessage()
func (*ListTasksResponse) ProtoReflect ¶
func (x *ListTasksResponse) ProtoReflect() protoreflect.Message
func (*ListTasksResponse) Reset ¶
func (x *ListTasksResponse) Reset()
func (*ListTasksResponse) String ¶
func (x *ListTasksResponse) String() string
type Message ¶
type Message struct {
// The unique identifier (e.g. UUID)of the message. This is required and
// created by the message creator.
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
// The context id of the message. This is optional and if set, the message
// will be associated with the given context.
ContextId string `protobuf:"bytes,2,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
// The task id of the message. This is optional and if set, the message
// will be associated with the given task.
TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// A role for the message.
Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=a2a.v1.Role" json:"role,omitempty"`
// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
// Parts is the container of the message content.
Parts []*Part `protobuf:"bytes,5,rep,name=parts,proto3" json:"parts,omitempty"`
// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
// Any optional metadata to provide along with the message.
Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// The URIs of extensions that are present or contributed to this Message.
Extensions []string `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty"`
// A list of task IDs that this message references for additional context.
ReferenceTaskIds []string `protobuf:"bytes,8,rep,name=reference_task_ids,json=referenceTaskIds,proto3" json:"reference_task_ids,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:Message] Message is one unit of communication between client and server. It is associated with a context and optionally a task. Since the server is responsible for the context definition, it must always provide a context_id in its messages. The client can optionally provide the context_id if it knows the context to associate the message to. Similarly for task_id, except the server decides if a task is created and whether to include the task_id.
func (*Message) Descriptor
deprecated
func (*Message) GetContextId ¶
func (*Message) GetExtensions ¶
func (*Message) GetMessageId ¶
func (*Message) GetMetadata ¶
func (*Message) GetReferenceTaskIds ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MutualTlsSecurityScheme ¶
type MutualTlsSecurityScheme struct {
// Description of this security scheme.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:MutualTLSSecurityScheme]
func (*MutualTlsSecurityScheme) Descriptor
deprecated
func (*MutualTlsSecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use MutualTlsSecurityScheme.ProtoReflect.Descriptor instead.
func (*MutualTlsSecurityScheme) GetDescription ¶
func (x *MutualTlsSecurityScheme) GetDescription() string
func (*MutualTlsSecurityScheme) ProtoMessage ¶
func (*MutualTlsSecurityScheme) ProtoMessage()
func (*MutualTlsSecurityScheme) ProtoReflect ¶
func (x *MutualTlsSecurityScheme) ProtoReflect() protoreflect.Message
func (*MutualTlsSecurityScheme) Reset ¶
func (x *MutualTlsSecurityScheme) Reset()
func (*MutualTlsSecurityScheme) String ¶
func (x *MutualTlsSecurityScheme) String() string
type OAuth2SecurityScheme ¶
type OAuth2SecurityScheme struct {
// Description of this security scheme.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// An object containing configuration information for the flow types supported
Flows *OAuthFlows `protobuf:"bytes,2,opt,name=flows,proto3" json:"flows,omitempty"`
// URL to the oauth2 authorization server metadata
// [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
Oauth2MetadataUrl string `protobuf:"bytes,3,opt,name=oauth2_metadata_url,json=oauth2MetadataUrl,proto3" json:"oauth2_metadata_url,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:OAuth2SecurityScheme]
func (*OAuth2SecurityScheme) Descriptor
deprecated
func (*OAuth2SecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use OAuth2SecurityScheme.ProtoReflect.Descriptor instead.
func (*OAuth2SecurityScheme) GetDescription ¶
func (x *OAuth2SecurityScheme) GetDescription() string
func (*OAuth2SecurityScheme) GetFlows ¶
func (x *OAuth2SecurityScheme) GetFlows() *OAuthFlows
func (*OAuth2SecurityScheme) GetOauth2MetadataUrl ¶
func (x *OAuth2SecurityScheme) GetOauth2MetadataUrl() string
func (*OAuth2SecurityScheme) ProtoMessage ¶
func (*OAuth2SecurityScheme) ProtoMessage()
func (*OAuth2SecurityScheme) ProtoReflect ¶
func (x *OAuth2SecurityScheme) ProtoReflect() protoreflect.Message
func (*OAuth2SecurityScheme) Reset ¶
func (x *OAuth2SecurityScheme) Reset()
func (*OAuth2SecurityScheme) String ¶
func (x *OAuth2SecurityScheme) String() string
type OAuthFlows ¶
type OAuthFlows struct {
// Types that are valid to be assigned to Flow:
//
// *OAuthFlows_AuthorizationCode
// *OAuthFlows_ClientCredentials
// *OAuthFlows_Implicit
// *OAuthFlows_Password
Flow isOAuthFlows_Flow `protobuf_oneof:"flow"`
// contains filtered or unexported fields
}
--8<-- [start:OAuthFlows]
func (*OAuthFlows) Descriptor
deprecated
func (*OAuthFlows) Descriptor() ([]byte, []int)
Deprecated: Use OAuthFlows.ProtoReflect.Descriptor instead.
func (*OAuthFlows) GetAuthorizationCode ¶
func (x *OAuthFlows) GetAuthorizationCode() *AuthorizationCodeOAuthFlow
func (*OAuthFlows) GetClientCredentials ¶
func (x *OAuthFlows) GetClientCredentials() *ClientCredentialsOAuthFlow
func (*OAuthFlows) GetFlow ¶
func (x *OAuthFlows) GetFlow() isOAuthFlows_Flow
func (*OAuthFlows) GetImplicit ¶
func (x *OAuthFlows) GetImplicit() *ImplicitOAuthFlow
func (*OAuthFlows) GetPassword ¶
func (x *OAuthFlows) GetPassword() *PasswordOAuthFlow
func (*OAuthFlows) ProtoMessage ¶
func (*OAuthFlows) ProtoMessage()
func (*OAuthFlows) ProtoReflect ¶
func (x *OAuthFlows) ProtoReflect() protoreflect.Message
func (*OAuthFlows) Reset ¶
func (x *OAuthFlows) Reset()
func (*OAuthFlows) String ¶
func (x *OAuthFlows) String() string
type OAuthFlows_AuthorizationCode ¶
type OAuthFlows_AuthorizationCode struct {
AuthorizationCode *AuthorizationCodeOAuthFlow `protobuf:"bytes,1,opt,name=authorization_code,json=authorizationCode,proto3,oneof"`
}
type OAuthFlows_ClientCredentials ¶
type OAuthFlows_ClientCredentials struct {
ClientCredentials *ClientCredentialsOAuthFlow `protobuf:"bytes,2,opt,name=client_credentials,json=clientCredentials,proto3,oneof"`
}
type OAuthFlows_Implicit ¶
type OAuthFlows_Implicit struct {
Implicit *ImplicitOAuthFlow `protobuf:"bytes,3,opt,name=implicit,proto3,oneof"`
}
type OAuthFlows_Password ¶
type OAuthFlows_Password struct {
Password *PasswordOAuthFlow `protobuf:"bytes,4,opt,name=password,proto3,oneof"`
}
type OpenIdConnectSecurityScheme ¶
type OpenIdConnectSecurityScheme struct {
// Description of this security scheme.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Well-known URL to discover the [[OpenID-Connect-Discovery]] provider
// metadata.
OpenIdConnectUrl string `protobuf:"bytes,2,opt,name=open_id_connect_url,json=openIdConnectUrl,proto3" json:"open_id_connect_url,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:OpenIdConnectSecurityScheme]
func (*OpenIdConnectSecurityScheme) Descriptor
deprecated
func (*OpenIdConnectSecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use OpenIdConnectSecurityScheme.ProtoReflect.Descriptor instead.
func (*OpenIdConnectSecurityScheme) GetDescription ¶
func (x *OpenIdConnectSecurityScheme) GetDescription() string
func (*OpenIdConnectSecurityScheme) GetOpenIdConnectUrl ¶
func (x *OpenIdConnectSecurityScheme) GetOpenIdConnectUrl() string
func (*OpenIdConnectSecurityScheme) ProtoMessage ¶
func (*OpenIdConnectSecurityScheme) ProtoMessage()
func (*OpenIdConnectSecurityScheme) ProtoReflect ¶
func (x *OpenIdConnectSecurityScheme) ProtoReflect() protoreflect.Message
func (*OpenIdConnectSecurityScheme) Reset ¶
func (x *OpenIdConnectSecurityScheme) Reset()
func (*OpenIdConnectSecurityScheme) String ¶
func (x *OpenIdConnectSecurityScheme) String() string
type Part ¶
type Part struct {
// Types that are valid to be assigned to Part:
//
// *Part_Text
// *Part_File
// *Part_Data
Part isPart_Part `protobuf_oneof:"part"`
// Optional metadata associated with this part.
Metadata *structpb.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:Part] Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
func (*Part) Descriptor
deprecated
func (*Part) GetMetadata ¶
func (*Part) ProtoMessage ¶
func (*Part) ProtoMessage()
func (*Part) ProtoReflect ¶
func (x *Part) ProtoReflect() protoreflect.Message
type Part_Data ¶
type Part_Data struct {
Data *DataPart `protobuf:"bytes,3,opt,name=data,proto3,oneof"`
}
type Part_File ¶
type Part_File struct {
File *FilePart `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
}
type Part_Text ¶
type Part_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type PasswordOAuthFlow ¶
type PasswordOAuthFlow struct {
// The token URL to be used for this flow. This MUST be in the form of a URL.
// The OAuth2 standard requires the use of TLS.
TokenUrl string `protobuf:"bytes,1,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
// The URL to be used for obtaining refresh tokens. This MUST be in the
// form of a URL. The OAuth2 standard requires the use of TLS.
RefreshUrl string `protobuf:"bytes,2,opt,name=refresh_url,json=refreshUrl,proto3" json:"refresh_url,omitempty"`
// The available scopes for the OAuth2 security scheme. A map between the
// scope name and a short description for it. The map MAY be empty.
Scopes map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
--8<-- [start:PasswordOAuthFlow]
func (*PasswordOAuthFlow) Descriptor
deprecated
func (*PasswordOAuthFlow) Descriptor() ([]byte, []int)
Deprecated: Use PasswordOAuthFlow.ProtoReflect.Descriptor instead.
func (*PasswordOAuthFlow) GetRefreshUrl ¶
func (x *PasswordOAuthFlow) GetRefreshUrl() string
func (*PasswordOAuthFlow) GetScopes ¶
func (x *PasswordOAuthFlow) GetScopes() map[string]string
func (*PasswordOAuthFlow) GetTokenUrl ¶
func (x *PasswordOAuthFlow) GetTokenUrl() string
func (*PasswordOAuthFlow) ProtoMessage ¶
func (*PasswordOAuthFlow) ProtoMessage()
func (*PasswordOAuthFlow) ProtoReflect ¶
func (x *PasswordOAuthFlow) ProtoReflect() protoreflect.Message
func (*PasswordOAuthFlow) Reset ¶
func (x *PasswordOAuthFlow) Reset()
func (*PasswordOAuthFlow) String ¶
func (x *PasswordOAuthFlow) String() string
type PushNotificationConfig ¶
type PushNotificationConfig struct {
// A unique identifier (e.g. UUID) for this push notification.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Url to send the notification too
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Token unique for this task/session
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
// Information about the authentication to sent with the notification
Authentication *AuthenticationInfo `protobuf:"bytes,4,opt,name=authentication,proto3" json:"authentication,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:PushNotificationConfig] Configuration for setting up push notifications for task updates.
func (*PushNotificationConfig) Descriptor
deprecated
func (*PushNotificationConfig) Descriptor() ([]byte, []int)
Deprecated: Use PushNotificationConfig.ProtoReflect.Descriptor instead.
func (*PushNotificationConfig) GetAuthentication ¶
func (x *PushNotificationConfig) GetAuthentication() *AuthenticationInfo
func (*PushNotificationConfig) GetId ¶
func (x *PushNotificationConfig) GetId() string
func (*PushNotificationConfig) GetToken ¶
func (x *PushNotificationConfig) GetToken() string
func (*PushNotificationConfig) GetUrl ¶
func (x *PushNotificationConfig) GetUrl() string
func (*PushNotificationConfig) ProtoMessage ¶
func (*PushNotificationConfig) ProtoMessage()
func (*PushNotificationConfig) ProtoReflect ¶
func (x *PushNotificationConfig) ProtoReflect() protoreflect.Message
func (*PushNotificationConfig) Reset ¶
func (x *PushNotificationConfig) Reset()
func (*PushNotificationConfig) String ¶
func (x *PushNotificationConfig) String() string
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type Security ¶
type Security struct {
Schemes map[string]*StringList `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Security) Descriptor
deprecated
func (*Security) GetSchemes ¶
func (x *Security) GetSchemes() map[string]*StringList
func (*Security) ProtoMessage ¶
func (*Security) ProtoMessage()
func (*Security) ProtoReflect ¶
func (x *Security) ProtoReflect() protoreflect.Message
type SecurityScheme ¶
type SecurityScheme struct {
// Types that are valid to be assigned to Scheme:
//
// *SecurityScheme_ApiKeySecurityScheme
// *SecurityScheme_HttpAuthSecurityScheme
// *SecurityScheme_Oauth2SecurityScheme
// *SecurityScheme_OpenIdConnectSecurityScheme
// *SecurityScheme_MtlsSecurityScheme
Scheme isSecurityScheme_Scheme `protobuf_oneof:"scheme"`
// contains filtered or unexported fields
}
--8<-- [start:SecurityScheme]
func (*SecurityScheme) Descriptor
deprecated
func (*SecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use SecurityScheme.ProtoReflect.Descriptor instead.
func (*SecurityScheme) GetApiKeySecurityScheme ¶
func (x *SecurityScheme) GetApiKeySecurityScheme() *APIKeySecurityScheme
func (*SecurityScheme) GetHttpAuthSecurityScheme ¶
func (x *SecurityScheme) GetHttpAuthSecurityScheme() *HTTPAuthSecurityScheme
func (*SecurityScheme) GetMtlsSecurityScheme ¶
func (x *SecurityScheme) GetMtlsSecurityScheme() *MutualTlsSecurityScheme
func (*SecurityScheme) GetOauth2SecurityScheme ¶
func (x *SecurityScheme) GetOauth2SecurityScheme() *OAuth2SecurityScheme
func (*SecurityScheme) GetOpenIdConnectSecurityScheme ¶
func (x *SecurityScheme) GetOpenIdConnectSecurityScheme() *OpenIdConnectSecurityScheme
func (*SecurityScheme) GetScheme ¶
func (x *SecurityScheme) GetScheme() isSecurityScheme_Scheme
func (*SecurityScheme) ProtoMessage ¶
func (*SecurityScheme) ProtoMessage()
func (*SecurityScheme) ProtoReflect ¶
func (x *SecurityScheme) ProtoReflect() protoreflect.Message
func (*SecurityScheme) Reset ¶
func (x *SecurityScheme) Reset()
func (*SecurityScheme) String ¶
func (x *SecurityScheme) String() string
type SecurityScheme_ApiKeySecurityScheme ¶
type SecurityScheme_ApiKeySecurityScheme struct {
ApiKeySecurityScheme *APIKeySecurityScheme `protobuf:"bytes,1,opt,name=api_key_security_scheme,json=apiKeySecurityScheme,proto3,oneof"`
}
type SecurityScheme_HttpAuthSecurityScheme ¶
type SecurityScheme_HttpAuthSecurityScheme struct {
HttpAuthSecurityScheme *HTTPAuthSecurityScheme `protobuf:"bytes,2,opt,name=http_auth_security_scheme,json=httpAuthSecurityScheme,proto3,oneof"`
}
type SecurityScheme_MtlsSecurityScheme ¶
type SecurityScheme_MtlsSecurityScheme struct {
MtlsSecurityScheme *MutualTlsSecurityScheme `protobuf:"bytes,5,opt,name=mtls_security_scheme,json=mtlsSecurityScheme,proto3,oneof"`
}
type SecurityScheme_Oauth2SecurityScheme ¶
type SecurityScheme_Oauth2SecurityScheme struct {
Oauth2SecurityScheme *OAuth2SecurityScheme `protobuf:"bytes,3,opt,name=oauth2_security_scheme,json=oauth2SecurityScheme,proto3,oneof"`
}
type SecurityScheme_OpenIdConnectSecurityScheme ¶
type SecurityScheme_OpenIdConnectSecurityScheme struct {
OpenIdConnectSecurityScheme *OpenIdConnectSecurityScheme `protobuf:"bytes,4,opt,name=open_id_connect_security_scheme,json=openIdConnectSecurityScheme,proto3,oneof"`
}
type SendMessageConfiguration ¶
type SendMessageConfiguration struct {
// The output modes that the agent is expected to respond with.
AcceptedOutputModes []string `protobuf:"bytes,1,rep,name=accepted_output_modes,json=acceptedOutputModes,proto3" json:"accepted_output_modes,omitempty"`
// A configuration of a webhook that can be used to receive updates
PushNotification *PushNotificationConfig `protobuf:"bytes,2,opt,name=push_notification,json=pushNotification,proto3" json:"push_notification,omitempty"`
// The maximum number of messages to include in the history. if 0, the
// history will be unlimited.
HistoryLength int32 `protobuf:"varint,3,opt,name=history_length,json=historyLength,proto3" json:"history_length,omitempty"`
// If true, the message will be blocking until the task is completed. If
// false, the message will be non-blocking and the task will be returned
// immediately. It is the caller's responsibility to check for any task
// updates.
Blocking bool `protobuf:"varint,4,opt,name=blocking,proto3" json:"blocking,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:MessageSendConfiguration] Configuration of a send message request.
func (*SendMessageConfiguration) Descriptor
deprecated
func (*SendMessageConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageConfiguration.ProtoReflect.Descriptor instead.
func (*SendMessageConfiguration) GetAcceptedOutputModes ¶
func (x *SendMessageConfiguration) GetAcceptedOutputModes() []string
func (*SendMessageConfiguration) GetBlocking ¶
func (x *SendMessageConfiguration) GetBlocking() bool
func (*SendMessageConfiguration) GetHistoryLength ¶
func (x *SendMessageConfiguration) GetHistoryLength() int32
func (*SendMessageConfiguration) GetPushNotification ¶
func (x *SendMessageConfiguration) GetPushNotification() *PushNotificationConfig
func (*SendMessageConfiguration) ProtoMessage ¶
func (*SendMessageConfiguration) ProtoMessage()
func (*SendMessageConfiguration) ProtoReflect ¶
func (x *SendMessageConfiguration) ProtoReflect() protoreflect.Message
func (*SendMessageConfiguration) Reset ¶
func (x *SendMessageConfiguration) Reset()
func (*SendMessageConfiguration) String ¶
func (x *SendMessageConfiguration) String() string
type SendMessageRequest ¶
type SendMessageRequest struct {
// The message to send to the agent.
Request *Message `protobuf:"bytes,1,opt,name=request,json=message,proto3" json:"request,omitempty"`
// Configuration for the send request.
Configuration *SendMessageConfiguration `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"`
// Optional metadata for the request.
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
/////////// Request Messages /////////// --8<-- [start:MessageSendParams]
func (*SendMessageRequest) Descriptor
deprecated
func (*SendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) GetConfiguration ¶
func (x *SendMessageRequest) GetConfiguration() *SendMessageConfiguration
func (*SendMessageRequest) GetMetadata ¶
func (x *SendMessageRequest) GetMetadata() *structpb.Struct
func (*SendMessageRequest) GetRequest ¶
func (x *SendMessageRequest) GetRequest() *Message
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) ProtoReflect ¶
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
func (*SendMessageRequest) Reset ¶
func (x *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (x *SendMessageRequest) String() string
type SendMessageResponse ¶
type SendMessageResponse struct {
// Types that are valid to be assigned to Payload:
//
// *SendMessageResponse_Task
// *SendMessageResponse_Msg
Payload isSendMessageResponse_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
////// Response Messages /////////// --8<-- [start:SendMessageSuccessResponse]
func (*SendMessageResponse) Descriptor
deprecated
func (*SendMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.
func (*SendMessageResponse) GetMsg ¶
func (x *SendMessageResponse) GetMsg() *Message
func (*SendMessageResponse) GetPayload ¶
func (x *SendMessageResponse) GetPayload() isSendMessageResponse_Payload
func (*SendMessageResponse) GetTask ¶
func (x *SendMessageResponse) GetTask() *Task
func (*SendMessageResponse) ProtoMessage ¶
func (*SendMessageResponse) ProtoMessage()
func (*SendMessageResponse) ProtoReflect ¶
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
func (*SendMessageResponse) Reset ¶
func (x *SendMessageResponse) Reset()
func (*SendMessageResponse) String ¶
func (x *SendMessageResponse) String() string
type SendMessageResponse_Msg ¶
type SendMessageResponse_Msg struct {
Msg *Message `protobuf:"bytes,2,opt,name=msg,json=message,proto3,oneof"`
}
type SendMessageResponse_Task ¶
type SendMessageResponse_Task struct {
Task *Task `protobuf:"bytes,1,opt,name=task,proto3,oneof"`
}
type StreamResponse ¶
type StreamResponse struct {
// Types that are valid to be assigned to Payload:
//
// *StreamResponse_Task
// *StreamResponse_Msg
// *StreamResponse_StatusUpdate
// *StreamResponse_ArtifactUpdate
Payload isStreamResponse_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
--8<-- [start:SendStreamingMessageSuccessResponse] The stream response for a message. The stream should be one of the following sequences: If the response is a message, the stream should contain one, and only one, message and then close If the response is a task lifecycle, the first response should be a Task object followed by zero or more TaskStatusUpdateEvents and TaskArtifactUpdateEvents. The stream should complete when the Task if in an interrupted or terminal state. A stream that ends before these conditions are met are
func (*StreamResponse) Descriptor
deprecated
func (*StreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.
func (*StreamResponse) GetArtifactUpdate ¶
func (x *StreamResponse) GetArtifactUpdate() *TaskArtifactUpdateEvent
func (*StreamResponse) GetMsg ¶
func (x *StreamResponse) GetMsg() *Message
func (*StreamResponse) GetPayload ¶
func (x *StreamResponse) GetPayload() isStreamResponse_Payload
func (*StreamResponse) GetStatusUpdate ¶
func (x *StreamResponse) GetStatusUpdate() *TaskStatusUpdateEvent
func (*StreamResponse) GetTask ¶
func (x *StreamResponse) GetTask() *Task
func (*StreamResponse) ProtoMessage ¶
func (*StreamResponse) ProtoMessage()
func (*StreamResponse) ProtoReflect ¶
func (x *StreamResponse) ProtoReflect() protoreflect.Message
func (*StreamResponse) Reset ¶
func (x *StreamResponse) Reset()
func (*StreamResponse) String ¶
func (x *StreamResponse) String() string
type StreamResponse_ArtifactUpdate ¶
type StreamResponse_ArtifactUpdate struct {
ArtifactUpdate *TaskArtifactUpdateEvent `protobuf:"bytes,4,opt,name=artifact_update,json=artifactUpdate,proto3,oneof"`
}
type StreamResponse_Msg ¶
type StreamResponse_Msg struct {
Msg *Message `protobuf:"bytes,2,opt,name=msg,json=message,proto3,oneof"`
}
type StreamResponse_StatusUpdate ¶
type StreamResponse_StatusUpdate struct {
StatusUpdate *TaskStatusUpdateEvent `protobuf:"bytes,3,opt,name=status_update,json=statusUpdate,proto3,oneof"`
}
type StreamResponse_Task ¶
type StreamResponse_Task struct {
Task *Task `protobuf:"bytes,1,opt,name=task,proto3,oneof"`
}
type StringList ¶
type StringList struct {
List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetList ¶
func (x *StringList) GetList() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string
type Task ¶
type Task struct {
// Unique identifier (e.g. UUID) for the task, generated by the server for a
// new task.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Unique identifier (e.g. UUID) for the contextual collection of interactions
// (tasks and messages). Created by the A2A server.
ContextId string `protobuf:"bytes,2,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
// The current status of a Task, including state and a message.
Status *TaskStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// A set of output artifacts for a Task.
Artifacts []*Artifact `protobuf:"bytes,4,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
// The history of interactions from a task.
History []*Message `protobuf:"bytes,5,rep,name=history,proto3" json:"history,omitempty"`
// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
// A key/value object to store custom metadata about a task.
Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:Task] Task is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
func (*Task) Descriptor
deprecated
func (*Task) GetArtifacts ¶
func (*Task) GetContextId ¶
func (*Task) GetHistory ¶
func (*Task) GetMetadata ¶
func (*Task) GetStatus ¶
func (x *Task) GetStatus() *TaskStatus
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type TaskArtifactUpdateEvent ¶
type TaskArtifactUpdateEvent struct {
// The id of the task for this artifact
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// The id of the context that this task belongs too
ContextId string `protobuf:"bytes,2,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
// The artifact itself
Artifact *Artifact `protobuf:"bytes,3,opt,name=artifact,proto3" json:"artifact,omitempty"`
// Whether this should be appended to a prior one produced
Append bool `protobuf:"varint,4,opt,name=append,proto3" json:"append,omitempty"`
// Whether this represents the last part of an artifact
LastChunk bool `protobuf:"varint,5,opt,name=last_chunk,json=lastChunk,proto3" json:"last_chunk,omitempty"`
// Optional metadata associated with the artifact update.
Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:TaskArtifactUpdateEvent] TaskArtifactUpdateEvent represents a task delta where an artifact has been generated.
func (*TaskArtifactUpdateEvent) Descriptor
deprecated
func (*TaskArtifactUpdateEvent) Descriptor() ([]byte, []int)
Deprecated: Use TaskArtifactUpdateEvent.ProtoReflect.Descriptor instead.
func (*TaskArtifactUpdateEvent) GetAppend ¶
func (x *TaskArtifactUpdateEvent) GetAppend() bool
func (*TaskArtifactUpdateEvent) GetArtifact ¶
func (x *TaskArtifactUpdateEvent) GetArtifact() *Artifact
func (*TaskArtifactUpdateEvent) GetContextId ¶
func (x *TaskArtifactUpdateEvent) GetContextId() string
func (*TaskArtifactUpdateEvent) GetLastChunk ¶
func (x *TaskArtifactUpdateEvent) GetLastChunk() bool
func (*TaskArtifactUpdateEvent) GetMetadata ¶
func (x *TaskArtifactUpdateEvent) GetMetadata() *structpb.Struct
func (*TaskArtifactUpdateEvent) GetTaskId ¶
func (x *TaskArtifactUpdateEvent) GetTaskId() string
func (*TaskArtifactUpdateEvent) ProtoMessage ¶
func (*TaskArtifactUpdateEvent) ProtoMessage()
func (*TaskArtifactUpdateEvent) ProtoReflect ¶
func (x *TaskArtifactUpdateEvent) ProtoReflect() protoreflect.Message
func (*TaskArtifactUpdateEvent) Reset ¶
func (x *TaskArtifactUpdateEvent) Reset()
func (*TaskArtifactUpdateEvent) String ¶
func (x *TaskArtifactUpdateEvent) String() string
type TaskPushNotificationConfig ¶
type TaskPushNotificationConfig struct {
// The resource name of the config.
// Format: tasks/{task_id}/pushNotificationConfigs/{config_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The push notification configuration details.
PushNotificationConfig *PushNotificationConfig `` /* 129-byte string literal not displayed */
// contains filtered or unexported fields
}
--8<-- [start:TaskPushNotificationConfig]
func (*TaskPushNotificationConfig) Descriptor
deprecated
func (*TaskPushNotificationConfig) Descriptor() ([]byte, []int)
Deprecated: Use TaskPushNotificationConfig.ProtoReflect.Descriptor instead.
func (*TaskPushNotificationConfig) GetName ¶
func (x *TaskPushNotificationConfig) GetName() string
func (*TaskPushNotificationConfig) GetPushNotificationConfig ¶
func (x *TaskPushNotificationConfig) GetPushNotificationConfig() *PushNotificationConfig
func (*TaskPushNotificationConfig) ProtoMessage ¶
func (*TaskPushNotificationConfig) ProtoMessage()
func (*TaskPushNotificationConfig) ProtoReflect ¶
func (x *TaskPushNotificationConfig) ProtoReflect() protoreflect.Message
func (*TaskPushNotificationConfig) Reset ¶
func (x *TaskPushNotificationConfig) Reset()
func (*TaskPushNotificationConfig) String ¶
func (x *TaskPushNotificationConfig) String() string
type TaskState ¶
type TaskState int32
--8<-- [start:TaskState] The set of states a Task can be in.
const ( TaskState_TASK_STATE_UNSPECIFIED TaskState = 0 // Represents the status that acknowledges a task is created TaskState_TASK_STATE_SUBMITTED TaskState = 1 // Represents the status that a task is actively being processed TaskState_TASK_STATE_WORKING TaskState = 2 // Represents the status a task is finished. This is a terminal state TaskState_TASK_STATE_COMPLETED TaskState = 3 // Represents the status a task is done but failed. This is a terminal state TaskState_TASK_STATE_FAILED TaskState = 4 // Represents the status a task was cancelled before it finished. // This is a terminal state. TaskState_TASK_STATE_CANCELLED TaskState = 5 // Represents the status that the task requires information to complete. // This is an interrupted state. TaskState_TASK_STATE_INPUT_REQUIRED TaskState = 6 // Represents the status that the agent has decided to not perform the task. // This may be done during initial task creation or later once an agent // has determined it can't or won't proceed. This is a terminal state. TaskState_TASK_STATE_REJECTED TaskState = 7 // Represents the state that some authentication is needed from the upstream // client. Authentication is expected to come out-of-band thus this is not // an interrupted or terminal state. TaskState_TASK_STATE_AUTH_REQUIRED TaskState = 8 )
func (TaskState) Descriptor ¶
func (TaskState) Descriptor() protoreflect.EnumDescriptor
func (TaskState) EnumDescriptor
deprecated
func (TaskState) Number ¶
func (x TaskState) Number() protoreflect.EnumNumber
func (TaskState) Type ¶
func (TaskState) Type() protoreflect.EnumType
type TaskStatus ¶
type TaskStatus struct {
// The current state of this task
State TaskState `protobuf:"varint,1,opt,name=state,proto3,enum=a2a.v1.TaskState" json:"state,omitempty"`
// A message associated with the status.
Update *Message `protobuf:"bytes,2,opt,name=update,json=message,proto3" json:"update,omitempty"`
// Timestamp when the status was recorded.
// Example: "2023-10-27T10:00:00Z"
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:TaskStatus] A container for the status of a task
func (*TaskStatus) Descriptor
deprecated
func (*TaskStatus) Descriptor() ([]byte, []int)
Deprecated: Use TaskStatus.ProtoReflect.Descriptor instead.
func (*TaskStatus) GetState ¶
func (x *TaskStatus) GetState() TaskState
func (*TaskStatus) GetTimestamp ¶
func (x *TaskStatus) GetTimestamp() *timestamppb.Timestamp
func (*TaskStatus) GetUpdate ¶
func (x *TaskStatus) GetUpdate() *Message
func (*TaskStatus) ProtoMessage ¶
func (*TaskStatus) ProtoMessage()
func (*TaskStatus) ProtoReflect ¶
func (x *TaskStatus) ProtoReflect() protoreflect.Message
func (*TaskStatus) Reset ¶
func (x *TaskStatus) Reset()
func (*TaskStatus) String ¶
func (x *TaskStatus) String() string
type TaskStatusUpdateEvent ¶
type TaskStatusUpdateEvent struct {
// The id of the task that is changed
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// The id of the context that the task belongs to
ContextId string `protobuf:"bytes,2,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
// The new status of the task.
Status *TaskStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// Whether this is the last status update expected for this task.
Final bool `protobuf:"varint,4,opt,name=final,proto3" json:"final,omitempty"`
// Optional metadata to associate with the task update.
Metadata *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:TaskStatusUpdateEvent] TaskStatusUpdateEvent is a delta even on a task indicating that a task has changed.
func (*TaskStatusUpdateEvent) Descriptor
deprecated
func (*TaskStatusUpdateEvent) Descriptor() ([]byte, []int)
Deprecated: Use TaskStatusUpdateEvent.ProtoReflect.Descriptor instead.
func (*TaskStatusUpdateEvent) GetContextId ¶
func (x *TaskStatusUpdateEvent) GetContextId() string
func (*TaskStatusUpdateEvent) GetFinal ¶
func (x *TaskStatusUpdateEvent) GetFinal() bool
func (*TaskStatusUpdateEvent) GetMetadata ¶
func (x *TaskStatusUpdateEvent) GetMetadata() *structpb.Struct
func (*TaskStatusUpdateEvent) GetStatus ¶
func (x *TaskStatusUpdateEvent) GetStatus() *TaskStatus
func (*TaskStatusUpdateEvent) GetTaskId ¶
func (x *TaskStatusUpdateEvent) GetTaskId() string
func (*TaskStatusUpdateEvent) ProtoMessage ¶
func (*TaskStatusUpdateEvent) ProtoMessage()
func (*TaskStatusUpdateEvent) ProtoReflect ¶
func (x *TaskStatusUpdateEvent) ProtoReflect() protoreflect.Message
func (*TaskStatusUpdateEvent) Reset ¶
func (x *TaskStatusUpdateEvent) Reset()
func (*TaskStatusUpdateEvent) String ¶
func (x *TaskStatusUpdateEvent) String() string
type TaskSubscriptionRequest ¶
type TaskSubscriptionRequest struct {
// The resource name of the task to subscribe to.
// Format: tasks/{task_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
--8<-- [start:TaskResubscriptionRequest]
func (*TaskSubscriptionRequest) Descriptor
deprecated
func (*TaskSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use TaskSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*TaskSubscriptionRequest) GetName ¶
func (x *TaskSubscriptionRequest) GetName() string
func (*TaskSubscriptionRequest) ProtoMessage ¶
func (*TaskSubscriptionRequest) ProtoMessage()
func (*TaskSubscriptionRequest) ProtoReflect ¶
func (x *TaskSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*TaskSubscriptionRequest) Reset ¶
func (x *TaskSubscriptionRequest) Reset()
func (*TaskSubscriptionRequest) String ¶
func (x *TaskSubscriptionRequest) String() string
type UnimplementedA2AServiceServer ¶
type UnimplementedA2AServiceServer struct{}
UnimplementedA2AServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedA2AServiceServer) CancelTask ¶
func (UnimplementedA2AServiceServer) CancelTask(context.Context, *CancelTaskRequest) (*Task, error)
func (UnimplementedA2AServiceServer) CreateTaskPushNotificationConfig ¶
func (UnimplementedA2AServiceServer) CreateTaskPushNotificationConfig(context.Context, *CreateTaskPushNotificationConfigRequest) (*TaskPushNotificationConfig, error)
func (UnimplementedA2AServiceServer) DeleteTaskPushNotificationConfig ¶
func (UnimplementedA2AServiceServer) DeleteTaskPushNotificationConfig(context.Context, *DeleteTaskPushNotificationConfigRequest) (*emptypb.Empty, error)
func (UnimplementedA2AServiceServer) GetAgentCard ¶
func (UnimplementedA2AServiceServer) GetAgentCard(context.Context, *GetAgentCardRequest) (*AgentCard, error)
func (UnimplementedA2AServiceServer) GetTask ¶
func (UnimplementedA2AServiceServer) GetTask(context.Context, *GetTaskRequest) (*Task, error)
func (UnimplementedA2AServiceServer) GetTaskPushNotificationConfig ¶
func (UnimplementedA2AServiceServer) GetTaskPushNotificationConfig(context.Context, *GetTaskPushNotificationConfigRequest) (*TaskPushNotificationConfig, error)
func (UnimplementedA2AServiceServer) ListTaskPushNotificationConfig ¶
func (UnimplementedA2AServiceServer) ListTaskPushNotificationConfig(context.Context, *ListTaskPushNotificationConfigRequest) (*ListTaskPushNotificationConfigResponse, error)
func (UnimplementedA2AServiceServer) ListTasks ¶
func (UnimplementedA2AServiceServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
func (UnimplementedA2AServiceServer) SendMessage ¶
func (UnimplementedA2AServiceServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
func (UnimplementedA2AServiceServer) SendStreamingMessage ¶
func (UnimplementedA2AServiceServer) SendStreamingMessage(*SendMessageRequest, grpc.ServerStreamingServer[StreamResponse]) error
func (UnimplementedA2AServiceServer) TaskSubscription ¶
func (UnimplementedA2AServiceServer) TaskSubscription(*TaskSubscriptionRequest, grpc.ServerStreamingServer[StreamResponse]) error
type UnsafeA2AServiceServer ¶
type UnsafeA2AServiceServer interface {
// contains filtered or unexported methods
}
UnsafeA2AServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to A2AServiceServer will result in compilation errors.