feat: add trace_id, ToolContext, and per-tool adapter methods#105
Closed
saurabhjain1592 wants to merge 1 commit intomainfrom
Closed
feat: add trace_id, ToolContext, and per-tool adapter methods#105saurabhjain1592 wants to merge 1 commit intomainfrom
saurabhjain1592 wants to merge 1 commit intomainfrom
Conversation
- 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()
Member
Author
|
Changes merged into #104 (feat/version-discovery) for unified E2E testing. |
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
trace_idtoCreateWorkflowRequest,CreateWorkflowResponse,WorkflowStatusResponse,ListWorkflowsOptionsToolContextmodel for per-tool governance within tool_call stepstool_contextfield toStepGateRequestcheck_tool_gate()andtool_completed()toAxonFlowLangGraphAdaptertrace_idparameter tostart_workflow()tool_contextparameter tocheck_gate()ToolContextfrom package rootPart of platform v4.9.0 (#1259, #1243).
Test plan
python -c "from axonflow import ToolContext"workspython -c "from axonflow.adapters import AxonFlowLangGraphAdapter"workslanggraph_tools_example.pypasses