类的使用
io.agentscope.core.tool.ToolExecutionContext
使用ToolExecutionContext的程序包
-
io.agentscope.core中ToolExecutionContext的使用
修饰符和类型方法说明ReActAgent.getToolExecutionContext()Returns theToolExecutionContextbound at build time, ornullif none.参数类型为ToolExecutionContext的io.agentscope.core中的方法修饰符和类型方法说明ReActAgent.Builder.toolExecutionContext(ToolExecutionContext toolExecutionContext) 已过时。 -
io.agentscope.core.agent中ToolExecutionContext的使用
修饰符和类型方法说明RuntimeContext.asToolExecutionContext()Merges this context's data into aToolExecutionContextfor tool invocations.RuntimeContext.getToolExecutionContext()Returns the tool execution context provided at build time, if any.修饰符和类型方法说明RuntimeContext.Builder.toolExecutionContext(ToolExecutionContext toolExecutionContext) Nests aToolExecutionContext(e.g. agent builder-level tool DI) that will be visible at lower priority than runtime attributes inRuntimeContext.asToolExecutionContext(). -
io.agentscope.core.tool中ToolExecutionContext的使用
修饰符和类型方法说明ToolExecutionContext.Builder.build()Builds the ToolExecutionContext.static ToolExecutionContextToolExecutionContext.empty()已过时。Creates an empty context.ToolCallParam.getContext()已过时。UseToolCallParam.getRuntimeContext()instead.ToolkitConfig.getDefaultContext()已过时。UseRuntimeContextinstead.static ToolExecutionContextToolExecutionContext.merge(ToolExecutionContext... contexts) 已过时。Merges multiple contexts into priority-based resolution chain.修饰符和类型方法说明ToolCallParam.Builder.context(ToolExecutionContext context) 已过时。UseToolCallParam.Builder.runtimeContext(RuntimeContext)instead.ToolkitConfig.Builder.defaultContext(ToolExecutionContext defaultContext) 已过时。UseRuntimeContextinstead.static ToolExecutionContextToolExecutionContext.merge(ToolExecutionContext... contexts) 已过时。Merges multiple contexts into priority-based resolution chain.
RuntimeContextwithagent.call(msg, runtimeContext)or register POJOs directly viaRuntimeContext.builder().put(Type, value).