Skip to content

Standardize API exports and AgentEvent types#136

Merged
dewitt merged 3 commits intomainfrom
pr/1-api-standardization
Feb 13, 2026
Merged

Standardize API exports and AgentEvent types#136
dewitt merged 3 commits intomainfrom
pr/1-api-standardization

Conversation

@dewitt
Copy link
Collaborator

@dewitt dewitt commented Feb 13, 2026

This PR standardizes the AgentEvent type definition and exposes userId and sessionId in ReadonlyContext. These are foundational types required for the upcoming streaming implementation and session management enhancements.

  • Defines AgentEvent discriminated union.
  • Exposes userId and sessionId in ReadonlyContext.
  • Consolidates exports in core/src/index.ts.

Fixes #135.

@dewitt dewitt changed the title feat(core): standardize API exports and AgentEvent types Standardize API exports and AgentEvent types Feb 13, 2026
dewitt added a commit that referenced this pull request Feb 13, 2026
dewitt added a commit that referenced this pull request Feb 13, 2026
dewitt added a commit that referenced this pull request Feb 13, 2026
This commit addresses feedback from PR #136 by:
- Updating copyright years to 2026 in event files.
- Introducing AgentEventType enum for better type safety in AgentEvent.
This commit addresses feedback from PR #136 by:
- Updating copyright years to 2026 in event files.
- Introducing AgentEventType enum for better type safety in AgentEvent.
@kalenkevich kalenkevich force-pushed the pr/1-api-standardization branch from 0b709c4 to 3932f48 Compare February 13, 2026 06:52
@dewitt dewitt merged commit de9f8e1 into main Feb 13, 2026
6 checks passed
@dewitt dewitt deleted the pr/1-api-standardization branch February 13, 2026 06:59
dewitt added a commit that referenced this pull request Feb 23, 2026
* Implement Runner streaming and stateless execution

Fixes #141

* chore: include PR #136 dependencies for CI

* refactor: extract convertEventToAgentEvents and add streaming tests

* fix: resolve type errors in streaming tests

* refactor: replace AgentEvent with native Event and parseEvent utility

* docs: update adk-ts-improvements.md for native events and parseEvent utility

* fix(test): add optional chaining to fix TypeDoc validation error

* refactor: address review comments, rename to runEphemeral and toStructuredEvents

* refactor: drop runStream and standardize on runAsync for parity with python ADK

* test: use @google/adk for imports in streaming runner test

* refactor: remove any casts and use native genai types for thought parts

* fix: remove redundant structured_events export from index.ts

* refactor: add explicit ToolConfirmationEvent type and export all structured event interfaces

* test: remove redundant runAsync test and make FinishedEvent output optional
dewitt added a commit that referenced this pull request Feb 24, 2026
dewitt added a commit that referenced this pull request Feb 24, 2026
* Refactor error handling and fix state persistence in LlmAgent

Fixes #143

* chore: include PR #140 and #136 dependencies for CI

* chore: remove stale agent_event.ts mock dependency

* test: remove any casts and use TestLlmAgent for cleaner testing
dewitt added a commit that referenced this pull request Feb 25, 2026
* Refactor error handling and fix state persistence in LlmAgent

Fixes #143

* chore: include PR #140 and #136 dependencies for CI

* chore: remove stale agent_event.ts mock dependency

* test: remove any casts and use TestLlmAgent for cleaner testing
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.

Need standard AgentEvent types and ReadonlyContext session details

2 participants