Skip to content

Agent Connector 4.3.0: Add sema4_api_url, batch work items, Snowflake support#272

Open
mikahanninen wants to merge 2 commits intomainfrom
agent-connector/4.3.0-sema4-api-url
Open

Agent Connector 4.3.0: Add sema4_api_url, batch work items, Snowflake support#272
mikahanninen wants to merge 2 commits intomainfrom
agent-connector/4.3.0-sema4-api-url

Conversation

@mikahanninen
Copy link
Contributor

Summary

  • Add sema4_api_url Secret parameter to all actions, enabling explicit API URL configuration (replaces implicit local-only detection)
  • Add create_work_items_for_agent() action for batch-creating multiple Work Items in a single call
  • Add get_current_conversation_id() action to expose the current thread ID for passing to worker agents
  • Add Snowflake deployment support: URL normalisation and Snowflake Token auth header for snowflakecomputing endpoints
  • Remove work_item_api_url parameter from create_work_item_for_agent() — URL is now derived from sema4_api_url
  • Refactor auth header logic into _get_auth_header() helper used consistently across all request paths
  • Fix: remove debug prints and a raise AgentApiClientException that was accidentally left in request()

Test plan

  • ask_agent() works with sema4_api_url=LOCAL (local Studio/SDK)
  • ask_agent() works with an explicit cloud URL
  • create_work_items_for_agent() creates one work item per entry in the JSON array
  • get_current_conversation_id() returns the current thread ID
  • Snowflake endpoint receives Snowflake Token auth header
  • When SEMA4AI_API_V1_URL env var is set, explicit URL is ignored

🤖 Generated with Claude Code

…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>
@mikahanninen mikahanninen requested a review from ovatto March 20, 2026 09:58
- 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>
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.

1 participant