pangukitsappdev.tool.unify package¶
Submodules¶
pangukitsappdev.tool.unify.unify_python_interpreter module¶
- class pangukitsappdev.tool.unify.unify_python_interpreter.UnifyPythonInterpreterTool(*, name: str = 'python_interpreter', description: str = '', args_schema: Optional[Type[BaseModel]] = None, return_direct: bool = False, verbose: bool = False, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, callback_manager: Optional[BaseCallbackManager] = None, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, handle_tool_error: Optional[Union[bool, str, Callable[[ToolException], str]]] = False, handle_validation_error: Optional[Union[bool, str, Callable[[ValidationError], str]]] = False, input_desc: str = '', output_desc: str = '', principle: str = '', func: Optional[Callable[[...], str]] = None, return_type: Optional[Type] = None, tool_input_schema: Optional[str] = None, tool_output_schema: Optional[str] = None, pangu_function: str = '{"name": "python_interpreter", "description:": "python解释器", "principle:": "问题可用编程解决时使用", "arguments": "String: python代码", "results": "String: 执行结果"}', python_sandbox: Optional[PythonSandBox] = None)¶
基类:
Tool
- python_sandbox: Optional[PythonSandBox]¶
pangukitsappdev.tool.unify.unify_web_search module¶
- class pangukitsappdev.tool.unify.unify_web_search.UnifyWebSearch(*, name: str = 'web_search', description: str = '', args_schema: Optional[Type[BaseModel]] = None, return_direct: bool = False, verbose: bool = False, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, callback_manager: Optional[BaseCallbackManager] = None, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, handle_tool_error: Optional[Union[bool, str, Callable[[ToolException], str]]] = False, handle_validation_error: Optional[Union[bool, str, Callable[[ValidationError], str]]] = False, input_desc: str = '', output_desc: str = '', principle: str = '', func: Optional[Callable[[...], str]] = None, return_type: Optional[Type] = None, tool_input_schema: Optional[str] = None, tool_output_schema: Optional[str] = None, pangu_function: str = '{"name": "web_search", "description:": "搜索引擎获取互联网知识", "principle:": "问题可用搜索引擎辅助解决时使用", "arguments": {"query": ["String:搜索query", "..."]}, "results": "搜索结果片段列表"}', web_search: Optional[WebSearch] = None)¶
基类:
Tool