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.compact_payload_for_model(tool_name: str, payload: Dict[str, Any]) Dict[str, Any][源代码]#
Return a semantically faithful, smaller payload for ReAct memory.
The full payload is still passed through runtime events; this function only controls what is written into AgentScope tool_result memory.
- 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][源代码]#