Files
Pietro Zullo 18f51eddb8 Feat: python/restructure (#318)
* move: session

* move: client

* move:config

* move: exceptions

* move: connectors -> client.connectors

* move: task_managers -> client.task_managers

* move: observability -> agents.observability

* move: middleware -> client.middleware

* move: managers -> agents.managers

* move: auth -> client.auth

* move: adapters -> agents.adapters

* test: bc test

* test: bc test

* chore: remove relative imports

* fix tests

* chore: update docs

* chore: deprecation warnings

* chore: fix dangerous non absolute import

* fix: remove legacy imports

* telemetry
2025-10-17 20:09:19 +02:00

14 lines
366 B
Python

from typing import Any
def is_stdio_server(server_config: dict[str, Any]) -> bool:
"""Check if the server configuration is for a stdio server.
Args:
server_config: The server configuration section
Returns:
True if the server is a stdio server, False otherwise
"""
return "command" in server_config and "args" in server_config