GitHub

API reference for ai.

AI services (Effect's effect/ai): prompts, responses, tools and toolkits, the provider-neutral LanguageModel and EmbeddingModel services, decision and the DecisionModel service (decision_model), the Model Context Protocol (mcp_server, mcp_client, mcp_test), and each provider's structured-output codec (anthropic_structured_output, openai_structured_output).

Each module is Effect's of the same name::

from pyfect.ai import language_model, prompt, response, tool, toolkit

Re-exports

Classes

Modules