Skip to content

feat: add trace_id, ToolContext, and per-tool adapter methods#105

Closed
saurabhjain1592 wants to merge 1 commit intomainfrom
feat/trace-id-tool-context
Closed

feat: add trace_id, ToolContext, and per-tool adapter methods#105
saurabhjain1592 wants to merge 1 commit intomainfrom
feat/trace-id-tool-context

Conversation

@saurabhjain1592
Copy link
Member

Summary

  • Add trace_id to CreateWorkflowRequest, CreateWorkflowResponse, WorkflowStatusResponse, ListWorkflowsOptions
  • Add ToolContext model for per-tool governance within tool_call steps
  • Add tool_context field to StepGateRequest
  • Add check_tool_gate() and tool_completed() to AxonFlowLangGraphAdapter
  • Add trace_id parameter to start_workflow()
  • Add tool_context parameter to check_gate()
  • Export ToolContext from package root

Part of platform v4.9.0 (#1259, #1243).

Test plan

  • python -c "from axonflow import ToolContext" works
  • python -c "from axonflow.adapters import AxonFlowLangGraphAdapter" works
  • E2E: langgraph_tools_example.py passes

- Add ToolContext model for per-tool governance within tool_call steps
- Add trace_id field to CreateWorkflowRequest, CreateWorkflowResponse,
  WorkflowStatusResponse, and ListWorkflowsOptions
- Add trace_id query param support in list_workflows client method
- Add tool_context parameter to StepGateRequest and check_gate() adapter
- Add check_tool_gate() convenience method for per-tool gate checks
- Add tool_completed() convenience method for tool-level completion
- Add tokens_in/tokens_out/cost_usd params to step_completed() adapter
- Export ToolContext from axonflow package
- Add trace_id param to LangGraph adapter start_workflow()
@saurabhjain1592
Copy link
Member Author

Changes merged into #104 (feat/version-discovery) for unified E2E testing.

@saurabhjain1592 saurabhjain1592 deleted the feat/trace-id-tool-context branch March 3, 2026 14:08
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