Skip to content

MessageSendParams.metadata not passed through to Worker #41

Description

@iangoldby

The A2A spec says that the payload of a message/send request (MessageSendParams) contains an optional metadata field, which is for the use of extensions:
https://a2a-protocol.org/latest/specification/#711-messagesendparams-object

The Worker.run_task() method takes a TaskSendParams argument, which also has a field metadata for extension metadata.

But when the message is forwarded to the broker (TaskManager.send_message()), this metadata object is omitted.

Is there any particular reason for this? In some cases it could be useful for the Worker to have access to extension metadata.

I think that resolving this would require no more than to add 'metadata': request['params']['metadata'] to the initialisation of broker_params in TaskManager.send_message().
https://github.com/pydantic/fasta2a/blob/a6d6cf0a0f65a418bc8a6eb980c7e74366c0e934/fasta2a/task_manager.py#L123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions