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.
List the current Space agent's connections without credentials.
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.
- get_connections() list[JSONObject][소스]¶
List the current Space agent’s connections without credentials.
- 반환:
Connection metadata with connector_id, connector_ref, display_name, and description.
- 반환 형식:
list[JSONObject]
- 예외 발생:
NotImplementedError – If the session does not support agent-owned connections.
- 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]
참고
Space sessions include only agent-owned connections and built-ins. Their credential-backed tool names identify a connection; pass those names unchanged to
call.