工具无法访问 Agent 运行时上下文 #3342
Unanswered
niceliangfan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
工具无法通过 ToolContext 访问 Agent 运行时上下文。
工具代码如下:
自定义 ToolInterceptor 代码如下:
智能体代码如下:
通过 自定义的 ToolInterceptor 可以看到 Agent 的上下文中是有用户ID,然而 ToolContext 打印却什么也没有。
Beta Was this translation helpful? Give feedback.
All reactions