AgentConnectors¶
- class AgentConnectors[소스]¶
기반 클래스:
ABCAbstract base class for AgentApp connector execution.
메소드
call(tool_call)Execute one model function_call and return a function_call_output item.
tools(names, *[, refresh])Return model-facing schemas for static and discovered connector tools.
- abstract call(tool_call: JSONObject) JSONObject[소스]¶
Execute one model function_call and return a function_call_output item.
- abstract tools(names: Sequence[str], *, refresh: bool = False) list[JSONObject][소스]¶
Return model-facing schemas for static and discovered connector tools.
- 매개변수:
names (Sequence[str]) – Connector references to include, in order.
refresh (bool (default: False)) – Rediscover the selected dynamic connectors. Schemas are otherwise cached for this agent runtime; static connectors require no discovery.
- 반환:
Independent copies of the model-facing tool schemas.
- 반환 형식:
list[JSONObject]