data_juicer_agents.adapters.agentscope#
AgentScope adapters for tool specs.
- data_juicer_agents.adapters.agentscope.build_agentscope_json_schema(spec: ToolSpec) Dict[str, Any][源代码]#
- data_juicer_agents.adapters.agentscope.build_agentscope_tool_function(spec: ToolSpec, *, ctx_factory: Callable[[], ToolContext], runtime_invoke: Callable[[str, Dict[str, Any], Callable[[], Dict[str, Any]]], Dict[str, Any]], arg_preview: Callable[[ToolSpec, Dict[str, Any]], Dict[str, Any]] | None = None)[源代码]#
- data_juicer_agents.adapters.agentscope.default_arg_preview(_spec: ToolSpec, raw_kwargs: Dict[str, Any]) Dict[str, Any][源代码]#
- data_juicer_agents.adapters.agentscope.invoke_tool_spec(spec: ToolSpec, *, ctx: ToolContext, raw_kwargs: Dict[str, Any]) Dict[str, Any][源代码]#