Skip to main content

config.frontend_config

Frontend configuration service for agent-runtimes.

This module provides configuration services that can be used by both Jupyter and FastAPI servers.

get_frontend_config

async def get_frontend_config(
tools: list[dict[str, Any]] | None = None,
mcp_servers: list[MCPServer] | None = None,
models: list[AIModelRuntime] | None = None) -> FrontendConfig

Build frontend configuration.

Arguments:

  • tools - List of available tools (dictionaries with 'name' and 'description')
  • mcp_servers - List of configured MCP servers
  • models - Custom model configurations (if None, uses defaults)

Returns:

FrontendConfig with all configuration data