Typed server-scoped RPC methods.
| 25524 | |
| 25525 | |
| 25526 | class ServerRpc: |
| 25527 | """Typed server-scoped RPC methods.""" |
| 25528 | def __init__(self, client: "JsonRpcClient"): |
| 25529 | self._client = client |
| 25530 | self.models = ServerModelsApi(client) |
| 25531 | self.tools = ServerToolsApi(client) |
| 25532 | self.account = ServerAccountApi(client) |
| 25533 | self.secrets = ServerSecretsApi(client) |
| 25534 | self.mcp = ServerMcpApi(client) |
| 25535 | self.plugins = ServerPluginsApi(client) |
| 25536 | self.skills = ServerSkillsApi(client) |
| 25537 | self.agents = ServerAgentsApi(client) |
| 25538 | self.instructions = ServerInstructionsApi(client) |
| 25539 | self.user = ServerUserApi(client) |
| 25540 | self.runtime = ServerRuntimeApi(client) |
| 25541 | self.session_fs = ServerSessionFsApi(client) |
| 25542 | self.llm_inference = ServerLlmInferenceApi(client) |
| 25543 | self.sessions = ServerSessionsApi(client) |
| 25544 | self.agent_registry = ServerAgentRegistryApi(client) |
| 25545 | |
| 25546 | async def ping(self, params: PingRequest, *, timeout: float | None = None) -> PingResult: |
| 25547 | "Checks server responsiveness and returns protocol information.\n\nArgs:\n params: Optional message to echo back to the caller.\n\nReturns:\n Server liveness response, including the echoed message, current server timestamp, and protocol version.\n\n.. warning:: This API is experimental and may change or be removed in future versions." |
| 25548 | params_dict = {k: v for k, v in params.to_dict().items() if v is not None} |
| 25549 | return PingResult.from_dict(await self._client.request("ping", params_dict, **_timeout_kwargs(timeout))) |
| 25550 | |
| 25551 | |
| 25552 | # Experimental: this API group is experimental and may change or be removed. |
no outgoing calls
no test coverage detected
searching dependent graphs…