refactor: reorganize agent context structure and add new types#675
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
refactor: reorganize agent context structure and add new types#675fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_thresholdandeager_eot_thresholdfields 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:
AgentV1SettingsAgentListen→AgentV1SettingsAgentContextListenAgentV1SettingsAgentSpeak→AgentV1SettingsAgentContextSpeakAgentV1SettingsAgentThink→AgentV1SettingsAgentContextThinkContext message types now include "Context" in their names (e.g.,
AgentV1SettingsAgentContextMessagesItem→AgentV1SettingsAgentContextContextMessagesItem)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.