Agent Connector 4.3.0: Add sema4_api_url, batch work items, Snowflake support#272
Open
mikahanninen wants to merge 2 commits intomainfrom
Open
Agent Connector 4.3.0: Add sema4_api_url, batch work items, Snowflake support#272mikahanninen wants to merge 2 commits intomainfrom
mikahanninen wants to merge 2 commits intomainfrom
Conversation
…wflake support - Add sema4_api_url Secret to all actions for explicit API URL configuration - Add create_work_items_for_agent() for batch Work Item creation - Add get_current_conversation_id() to expose thread ID to worker agents - Add Snowflake deployment support with URL normalisation and token auth - Remove work_item_api_url param from create_work_item_for_agent() (derived from sema4_api_url) - Refactor auth header logic into _get_auth_header() helper - Remove debug prints and raise statement left in request() method Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Document sema4_api_url Secret parameter and authentication table - Add Snowflake environment instructions - Add create_work_items_for_agent batch usage example - Add get_current_conversation_id usage example Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
sema4_api_urlSecret parameter to all actions, enabling explicit API URL configuration (replaces implicit local-only detection)create_work_items_for_agent()action for batch-creating multiple Work Items in a single callget_current_conversation_id()action to expose the current thread ID for passing to worker agentsSnowflake Tokenauth header forsnowflakecomputingendpointswork_item_api_urlparameter fromcreate_work_item_for_agent()— URL is now derived fromsema4_api_url_get_auth_header()helper used consistently across all request pathsraise AgentApiClientExceptionthat was accidentally left inrequest()Test plan
ask_agent()works withsema4_api_url=LOCAL(local Studio/SDK)ask_agent()works with an explicit cloud URLcreate_work_items_for_agent()creates one work item per entry in the JSON arrayget_current_conversation_id()returns the current thread IDSnowflake Tokenauth headerSEMA4AI_API_V1_URLenv var is set, explicit URL is ignored🤖 Generated with Claude Code