Skip to main content
Glama

mcp-run-python

Official
by pydantic
outlines.py1.25 kB
from __future__ import annotations as _annotations from typing import Any from pydantic_ai.profiles import ModelProfile from pydantic_ai.providers import Provider class OutlinesProvider(Provider[Any]): """Provider for Outlines API.""" @property def name(self) -> str: """The provider name.""" return 'outlines' @property def base_url(self) -> str: """The base URL for the provider API.""" raise NotImplementedError( 'The Outlines provider does not have a set base URL as it functions ' + 'with a set of different underlying models.' ) @property def client(self) -> Any: """The client for the provider.""" raise NotImplementedError( 'The Outlines provider does not have a set client as it functions ' + 'with a set of different underlying models.' ) def model_profile(self, model_name: str) -> ModelProfile | None: """The model profile for the named model, if available.""" return ModelProfile( supports_tools=False, supports_json_schema_output=True, supports_json_object_output=True, default_structured_output_mode='native', )

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pydantic/pydantic-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server