Skip to content

refactor: reorganize agent context structure and add new types#675

Open
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-18T20-09Z
Open

refactor: reorganize agent context structure and add new types#675
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-18T20-09Z

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Mar 18, 2026

Version Bump: Removed multiple public types (AgentV1SettingsAgentListen, AgentV1SettingsAgentSpeak, AgentV1SettingsAgentThink, etc.) and renamed existing types, breaking imports and references for existing SDK consumers.

  • The SDK now supports end-of-turn threshold configuration with new eot_threshold and eager_eot_threshold fields in V2 listen providers. Agent settings have been restructured with improved type organization and new think update capabilities.

  • The agent API types have been restructured for better organization. Several type names have changed:

  • AgentV1SettingsAgentListenAgentV1SettingsAgentContextListen

  • AgentV1SettingsAgentSpeakAgentV1SettingsAgentContextSpeak

  • AgentV1SettingsAgentThinkAgentV1SettingsAgentContextThink

  • Context message types now include "Context" in their names (e.g., AgentV1SettingsAgentContextMessagesItemAgentV1SettingsAgentContextContextMessagesItem)

Update your imports to use the new type names. The functionality remains the same, only the naming structure has changed to better reflect the hierarchical organization.

  • The SDK now includes enhanced agent configuration with restructured context settings and new think/speak update types. Listen websocket connections now use strongly-typed parameters instead of generic strings for better type safety and IDE support.
  • The WebSocket APIs now use specific type classes (ListenV2Encoding, SpeakV1Model, etc.) instead of generic strings for better type safety and IDE support. New agent configuration capabilities have been added, including support for listen, speak, and think provider settings with dynamic configuration updates.
  • New configuration message types for Listen v2 API enable dynamic adjustment of thresholds and keyterms during streaming sessions. Project member responses now include optional scopes, first_name, and last_name fields.

Restructured the agent context configuration to move nested components from
AgentV1SettingsAgent to AgentV1SettingsAgentContext, creating a cleaner
hierarchical organization. Added new types for think updates and speak updates
with dedicated parameter classes.

Key changes:
- Moved Listen, Speak, and Think types from AgentV1SettingsAgent to AgentV1SettingsAgentContext
- Renamed context message types to include "Context" prefix for clarity
- Added AgentV1ThinkUpdated and related parameter types
- Added AgentV1UpdateSpeakSpeak and AgentV1UpdateThinkThink types
- Updated documentation examples for authorization header format
- Added new context parameter types and consolidated imports

🌿 Generated with Fern
@fern-api fern-api bot requested a review from lukeocodes as a code owner March 18, 2026 20:09
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.

0 participants