Uses of Record Class
org.a2aproject.sdk.spec.Message
Packages that use Message
Package
Description
JSON processing exceptions for the A2A Java SDK.
-
Uses of Message in org.a2aproject.sdk
Methods in org.a2aproject.sdk that return MessageModifier and TypeMethodDescriptionstatic MessageA2A.createAgentPartsMessage(List<Part<?>> parts, String contextId, String taskId) Create an agent message with custom parts and optional context and task IDs.static MessageA2A.createAgentTextMessage(String text, String contextId, String taskId) Create an agent message with text content and optional context and task IDs.static MessageA2A.createUserTextMessage(String text, String contextId, String taskId) Create a user message with text content and optional context and task IDs.static MessageA2A.toAgentMessage(String text) Create a simple agent message from text.static MessageA2A.toAgentMessage(String text, String messageId) Create an agent message from text with a specific message ID.static MessageA2A.toUserMessage(String text) Create a simple user message from text.static MessageA2A.toUserMessage(String text, String messageId) Create a user message from text with a specific message ID. -
Uses of Message in org.a2aproject.sdk.client
Methods in org.a2aproject.sdk.client that return MessageModifier and TypeMethodDescriptionMessageEvent.getMessage()Get the message contained in this event.Methods in org.a2aproject.sdk.client with parameters of type MessageModifier and TypeMethodDescriptionvoidAbstractClient.sendMessage(@NonNull Message request) Send a message to the remote agent.voidAbstractClient.sendMessage(@NonNull Message request, @NonNull List<BiConsumer<ClientEvent, AgentCard>> consumers, @Nullable Consumer<Throwable> streamingErrorHandler) Send a message to the remote agent.abstract voidAbstractClient.sendMessage(@NonNull Message request, @NonNull List<BiConsumer<ClientEvent, AgentCard>> consumers, @Nullable Consumer<Throwable> streamingErrorHandler, @Nullable ClientCallContext context) Send a message to the remote agent.voidAbstractClient.sendMessage(@NonNull Message request, @Nullable ClientCallContext context) Send a message to the remote agent.voidAbstractClient.sendMessage(@NonNull Message request, @Nullable TaskPushNotificationConfig pushNotificationConfiguration, @Nullable Map<String, Object> metadata) Send a message to the remote agent.abstract voidAbstractClient.sendMessage(@NonNull Message request, @Nullable TaskPushNotificationConfig pushNotificationConfiguration, @Nullable Map<String, Object> metadata, @Nullable ClientCallContext context) Send a message to the remote agent.voidClient.sendMessage(@NonNull Message request, @NonNull List<BiConsumer<ClientEvent, AgentCard>> consumers, @Nullable Consumer<Throwable> streamingErrorHandler, @Nullable ClientCallContext context) voidClient.sendMessage(@NonNull Message request, @Nullable TaskPushNotificationConfig pushNotificationConfiguration, @Nullable Map<String, Object> metadata, @Nullable ClientCallContext context) Send a message to the agent.Constructors in org.a2aproject.sdk.client with parameters of type Message -
Uses of Message in org.a2aproject.sdk.compat03.conversion.mappers.domain
Methods in org.a2aproject.sdk.compat03.conversion.mappers.domain that return MessageModifier and TypeMethodDescriptiondefault MessageMessageMapper_v0_3.toV10(Message_v0_3 v03) Converts v0.3 Message to v1.0 Message.Methods in org.a2aproject.sdk.compat03.conversion.mappers.domain with parameters of type Message -
Uses of Message in org.a2aproject.sdk.grpc.mapper
Methods in org.a2aproject.sdk.grpc.mapper that return MessageModifier and TypeMethodDescriptionConverts proto Message to domain Message.protected Message[]TaskMapperImpl.messageListToMessageArray(List<Message> list) Methods in org.a2aproject.sdk.grpc.mapper with parameters of type Message -
Uses of Message in org.a2aproject.sdk.grpc.utils
Methods in org.a2aproject.sdk.grpc.utils that return MessageModifier and TypeMethodDescriptionstatic MessageProtoUtils.FromProto.message(MessageOrBuilder message) Methods in org.a2aproject.sdk.grpc.utils with parameters of type Message -
Uses of Message in org.a2aproject.sdk.server.agentexecution
Methods in org.a2aproject.sdk.server.agentexecution that return MessageModifier and TypeMethodDescription@Nullable MessageRequestContext.getMessage()Returns the user's message. -
Uses of Message in org.a2aproject.sdk.server.tasks
Methods in org.a2aproject.sdk.server.tasks that return MessageModifier and TypeMethodDescriptionCreates a new agent message with the given parts and metadata.Methods in org.a2aproject.sdk.server.tasks with parameters of type MessageModifier and TypeMethodDescriptionvoidMarks the task as CANCELED with an optional message.voidMarks the task as COMPLETED with an optional message.voidMarks the task as FAILED with an optional message.voidMarks the task as REJECTED with an optional message.voidAgentEmitter.requiresAuth(@Nullable Message message) Marks the task as AUTH_REQUIRED with an optional message.voidAgentEmitter.requiresAuth(@Nullable Message message, boolean isFinal) Marks the task as AUTH_REQUIRED with an optional message and finality flag.voidAgentEmitter.requiresInput(@Nullable Message message) Marks the task as INPUT_REQUIRED with an optional message.voidAgentEmitter.requiresInput(@Nullable Message message, boolean isFinal) Marks the task as INPUT_REQUIRED with an optional message and finality flag.voidAgentEmitter.sendMessage(Message message) Sends an existing Message object directly to the client.voidMarks the task as WORKING with an optional message.voidMarks the task as SUBMITTED with an optional message.voidAgentEmitter.updateStatus(TaskState taskState, @Nullable Message message) Updates the task status to the given state with an optional message.TaskManager.updateWithMessage(Message message, Task task) Constructors in org.a2aproject.sdk.server.tasks with parameters of type MessageModifierConstructorDescriptionResultAggregator(TaskManager taskManager, @Nullable Message message, Executor executor, Executor eventConsumerExecutor) TaskManager(@Nullable String taskId, @Nullable String contextId, TaskStore taskStore, @Nullable Message initialMessage) -
Uses of Message in org.a2aproject.sdk.spec
Methods in org.a2aproject.sdk.spec that return MessageModifier and TypeMethodDescriptionMessage.Builder.build()Builds a newMessagefrom the current builder state.MessageSendParams.message()Returns the value of themessagerecord component.@Nullable MessageTaskStatus.message()Returns the value of themessagerecord component.Methods in org.a2aproject.sdk.spec that return types with arguments of type MessageModifier and TypeMethodDescriptionTask.history()Returns the value of thehistoryrecord component.Methods in org.a2aproject.sdk.spec with parameters of type MessageModifier and TypeMethodDescriptionstatic Message.BuilderCreates a new Builder initialized with values from an existing Message.Sets the conversation history using a varargs array of messages.Sets the message to send to the agent.Method parameters in org.a2aproject.sdk.spec with type arguments of type MessageModifier and TypeMethodDescriptionSets the conversation history for this task.Constructors in org.a2aproject.sdk.spec with parameters of type MessageModifierConstructorDescriptionMessageSendParams(Message message, @Nullable MessageSendConfiguration configuration, @Nullable Map<String, Object> metadata) Convenience constructor with default tenant.MessageSendParams(Message message, @Nullable MessageSendConfiguration configuration, @Nullable Map<String, Object> metadata, @Nullable String tenant) Compact constructor for validation.TaskStatus(TaskState state, @Nullable Message message, @Nullable OffsetDateTime timestamp) Compact constructor for validation and timestamp initialization.