Skip to content

A2A integration: add executor context#166

Merged
kalenkevich merged 1 commit intomainfrom
a2a/part_3
Feb 27, 2026
Merged

A2A integration: add executor context#166
kalenkevich merged 1 commit intomainfrom
a2a/part_3

Conversation

@kalenkevich
Copy link
Collaborator

Description

Introduces the ExecutorContext interface and the associated createExecutorContext function, providing a unified context structure for the A2A Agent framework.

Changes

  • Added core/src/a2a/executor_context.ts:
    • Defined the ExecutorContext interface which encapsulates essential runtime information, including userId, sessionId, agentName, readonlyState, events, userContent, and requestContext.
    • Implemented the createExecutorContext factory function that constructs the context from the provided parameters. It handles cases with and without a provided session, falling back to safe defaults or extracting details from the requestContext.
  • Added core/test/a2a/executor_context_test.ts:
    • Introduced comprehensive unit tests using vitest to verify that createExecutorContext behaves correctly, ensuring both "with session" and "without session" scenarios are fully covered.

@kalenkevich kalenkevich requested a review from ishymko February 26, 2026 23:21
@kalenkevich kalenkevich self-assigned this Feb 26, 2026
@kalenkevich kalenkevich changed the title A2A integration: add executor context A2A integration: Add executor context Feb 26, 2026
@kalenkevich kalenkevich changed the title A2A integration: Add executor context A2A integration: add executor context Feb 26, 2026
@kalenkevich kalenkevich merged commit af7ef52 into main Feb 27, 2026
6 checks passed
@kalenkevich kalenkevich deleted the a2a/part_3 branch February 27, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants