├── .env.template ├── .github ├── dependabot.yml └── workflows │ ├── deploy_docs.yml │ ├── publish.yml │ └── test.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .python-version ├── .vscode └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── docs ├── CNAME ├── assets │ └── images │ │ ├── jaeger_describe_weather.png │ │ └── logfire_describe_weather.png ├── asyncio.md ├── chat-prompting.md ├── chat.md ├── configuration.md ├── css │ └── jupyter-notebook.css ├── examples │ ├── chain_of_verification.ipynb │ ├── rag_github.ipynb │ ├── registering_custom_type.ipynb │ └── vision_renaming_screenshots.ipynb ├── formatting.md ├── function-calling.md ├── index.md ├── logging-and-tracing.md ├── retrying.md ├── streaming.md ├── structured-outputs.md ├── type-checking.md └── vision.md ├── mkdocs.yml ├── pyproject.toml ├── src └── magentic │ ├── __init__.py │ ├── _chat.py │ ├── _parsing.py │ ├── _pydantic.py │ ├── _streamed_response.py │ ├── backend.py │ ├── chat_model │ ├── __init__.py │ ├── anthropic_chat_model.py │ ├── base.py │ ├── function_schema.py │ ├── litellm_chat_model.py │ ├── message.py │ ├── mistral_chat_model.py │ ├── openai_chat_model.py │ ├── openrouter_chat_model.py │ ├── retry_chat_model.py │ └── stream.py │ ├── chatprompt.py │ ├── formatting.py │ ├── function_call.py │ ├── logger.py │ ├── prompt_chain.py │ ├── prompt_function.py │ ├── py.typed │ ├── settings.py │ ├── streaming.py │ ├── typing.py │ └── vision.py ├── tests ├── cassettes │ ├── test_backend │ │ └── test_openai_chat_model_completion.yaml │ ├── test_chat │ │ ├── test_chat_asubmit.yaml │ │ └── test_chat_submit.yaml │ ├── test_chatprompt │ │ ├── test_chatprompt_readme_example.yaml │ │ ├── test_chatprompt_with_function_call_and_result.yaml │ │ └── test_chatprompt_with_image_bytes.yaml │ ├── test_prompt_chain │ │ ├── test_async_prompt_chain.yaml │ │ ├── test_async_prompt_chain_messages.yaml │ │ ├── test_prompt_chain.yaml │ │ └── test_prompt_chain_messages.yaml │ ├── test_prompt_function │ │ ├── test_async_decorator_max_retries.yaml │ │ ├── test_async_decorator_return_async_function_call.yaml │ │ ├── test_async_decorator_return_async_streamed_str.yaml │ │ ├── test_async_decorator_return_function_call.yaml │ │ ├── test_async_decorator_return_str.yaml │ │ ├── test_decorator_ignore_multiple_tool_calls.yaml │ │ ├── test_decorator_input_pydantic_model.yaml │ │ ├── test_decorator_max_retries.yaml │ │ ├── test_decorator_return_async_parallel_function_call.yaml │ │ ├── test_decorator_return_bool.yaml │ │ ├── test_decorator_return_bool_str.yaml │ │ ├── test_decorator_return_function_call.yaml │ │ ├── test_decorator_return_parallel_function_call.yaml │ │ ├── test_decorator_return_pydantic_model.yaml │ │ ├── test_decorator_return_str.yaml │ │ └── test_decorator_return_streamed_str.yaml │ └── test_vision │ │ ├── test_chatprompt_with_user_image_message.yaml │ │ └── test_chatprompt_with_user_image_message_anthropic.yaml ├── chat_model │ ├── cassettes │ │ ├── test_anthropic_chat_model │ │ │ ├── test_anthropic_chat_model_acomplete[List three fruits-output_types3-list].yaml │ │ │ ├── test_anthropic_chat_model_acomplete[Return True-output_types1-bool].yaml │ │ │ ├── test_anthropic_chat_model_acomplete[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_anthropic_chat_model_acomplete[Say hello!-output_types0-str].yaml │ │ │ ├── test_anthropic_chat_model_acomplete_async_parallel_function_call.yaml │ │ │ ├── test_anthropic_chat_model_acomplete_async_streamed_response.yaml │ │ │ ├── test_anthropic_chat_model_acomplete_function_call.yaml │ │ │ ├── test_anthropic_chat_model_acomplete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_anthropic_chat_model_acomplete_usage.yaml │ │ │ ├── test_anthropic_chat_model_acomplete_usage_structured_output.yaml │ │ │ ├── test_anthropic_chat_model_complete[List three fruits-output_types3-list].yaml │ │ │ ├── test_anthropic_chat_model_complete[Return True-output_types1-bool].yaml │ │ │ ├── test_anthropic_chat_model_complete[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_anthropic_chat_model_complete[Say hello!-output_types0-str].yaml │ │ │ ├── test_anthropic_chat_model_complete_document_bytes.yaml │ │ │ ├── test_anthropic_chat_model_complete_function_call.yaml │ │ │ ├── test_anthropic_chat_model_complete_image_bytes.yaml │ │ │ ├── test_anthropic_chat_model_complete_no_structured_output_error.yaml │ │ │ ├── test_anthropic_chat_model_complete_parallel_function_call.yaml │ │ │ ├── test_anthropic_chat_model_complete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_anthropic_chat_model_complete_streamed_response.yaml │ │ │ ├── test_anthropic_chat_model_complete_usage.yaml │ │ │ └── test_anthropic_chat_model_complete_usage_structured_output.yaml │ │ ├── test_litellm_chat_model │ │ │ ├── test_litellm_chat_model_acomplete_anthropic[Return True-output_types1-bool].yaml │ │ │ ├── test_litellm_chat_model_acomplete_anthropic[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_litellm_chat_model_acomplete_anthropic[Say hello!-output_types0-str].yaml │ │ │ ├── test_litellm_chat_model_acomplete_anthropic_async_parallel_function_call.yaml │ │ │ ├── test_litellm_chat_model_acomplete_anthropic_function_call.yaml │ │ │ ├── test_litellm_chat_model_acomplete_ollama[Say hello!-output_types0-str].yaml │ │ │ ├── test_litellm_chat_model_acomplete_openai[List three fruits-output_types3-list].yaml │ │ │ ├── test_litellm_chat_model_acomplete_openai[Return True-output_types1-bool].yaml │ │ │ ├── test_litellm_chat_model_acomplete_openai[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_litellm_chat_model_acomplete_openai[Say hello!-output_types0-str].yaml │ │ │ ├── test_litellm_chat_model_acomplete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_litellm_chat_model_complete_anthropic[Return True-output_types1-bool].yaml │ │ │ ├── test_litellm_chat_model_complete_anthropic[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_litellm_chat_model_complete_anthropic[Say hello!-output_types0-str].yaml │ │ │ ├── test_litellm_chat_model_complete_anthropic_function_call.yaml │ │ │ ├── test_litellm_chat_model_complete_anthropic_parallel_function_call.yaml │ │ │ ├── test_litellm_chat_model_complete_ollama[Say hello!-output_types0-str].yaml │ │ │ ├── test_litellm_chat_model_complete_openai[List three fruits-output_types3-list].yaml │ │ │ ├── test_litellm_chat_model_complete_openai[Return True-output_types1-bool].yaml │ │ │ ├── test_litellm_chat_model_complete_openai[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_litellm_chat_model_complete_openai[Say hello!-output_types0-str].yaml │ │ │ ├── test_litellm_chat_model_complete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_litellm_chat_model_custom_llm_provider.yaml │ │ │ ├── test_litellm_chat_model_custom_llm_provider_async.yaml │ │ │ ├── test_litellm_chat_model_extra_headers.yaml │ │ │ ├── test_litellm_chat_model_metadata.yaml │ │ │ └── test_litellm_chat_model_metadata_async.yaml │ │ ├── test_mistral_chat_model │ │ │ ├── test_mistral_chat_model_acomplete[List three fruits-output_types3-list].yaml │ │ │ ├── test_mistral_chat_model_acomplete[Return True-output_types1-bool].yaml │ │ │ ├── test_mistral_chat_model_acomplete[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_mistral_chat_model_acomplete[Say hello!-output_types0-str].yaml │ │ │ ├── test_mistral_chat_model_acomplete_async_parallel_function_call.yaml │ │ │ ├── test_mistral_chat_model_acomplete_function_call.yaml │ │ │ ├── test_mistral_chat_model_acomplete_usage.yaml │ │ │ ├── test_mistral_chat_model_acomplete_usage_structured_output.yaml │ │ │ ├── test_mistral_chat_model_complete[List three fruits-output_types3-list].yaml │ │ │ ├── test_mistral_chat_model_complete[Return True-output_types1-bool].yaml │ │ │ ├── test_mistral_chat_model_complete[Return the numbers 1 to 5-output_types2-list].yaml │ │ │ ├── test_mistral_chat_model_complete[Say hello!-output_types0-str].yaml │ │ │ ├── test_mistral_chat_model_complete_function_call.yaml │ │ │ ├── test_mistral_chat_model_complete_parallel_function_call.yaml │ │ │ ├── test_mistral_chat_model_complete_usage.yaml │ │ │ ├── test_mistral_chat_model_complete_usage_structured_output.yaml │ │ │ └── test_mistral_chat_model_few_shot_prompt.yaml │ │ ├── test_openai_chat_model │ │ │ ├── test_openai_chat_model_acomplete_async_streamed_response.yaml │ │ │ ├── test_openai_chat_model_acomplete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_openai_chat_model_acomplete_usage.yaml │ │ │ ├── test_openai_chat_model_acomplete_usage_structured_output.yaml │ │ │ ├── test_openai_chat_model_api_key.yaml │ │ │ ├── test_openai_chat_model_complete_base_url.yaml │ │ │ ├── test_openai_chat_model_complete_function_call_openai_strict.yaml │ │ │ ├── test_openai_chat_model_complete_image_bytes.yaml │ │ │ ├── test_openai_chat_model_complete_max_completion_tokens.yaml │ │ │ ├── test_openai_chat_model_complete_no_structured_output_error.yaml │ │ │ ├── test_openai_chat_model_complete_pydantic_model_openai_strict.yaml │ │ │ ├── test_openai_chat_model_complete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_openai_chat_model_complete_seed.yaml │ │ │ ├── test_openai_chat_model_complete_streamed_response.yaml │ │ │ ├── test_openai_chat_model_complete_usage.yaml │ │ │ ├── test_openai_chat_model_complete_usage_structured_output.yaml │ │ │ ├── test_openai_chat_model_reasoning_effort.yaml │ │ │ └── test_openai_chat_model_verbosity.yaml │ │ ├── test_openai_chat_model_gemini │ │ │ ├── test_openai_chat_model_gemini_acomplete[Return True.-output_types1-bool].yaml │ │ │ ├── test_openai_chat_model_gemini_acomplete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml │ │ │ ├── test_openai_chat_model_gemini_acomplete[Return a list of fruit-output_types3-list].yaml │ │ │ ├── test_openai_chat_model_gemini_acomplete[Say hello!-output_types0-str].yaml │ │ │ ├── test_openai_chat_model_gemini_complete[Return True.-output_types1-bool].yaml │ │ │ ├── test_openai_chat_model_gemini_complete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml │ │ │ ├── test_openai_chat_model_gemini_complete[Return a list of fruit-output_types3-list].yaml │ │ │ └── test_openai_chat_model_gemini_complete[Say hello!-output_types0-str].yaml │ │ ├── test_openai_chat_model_ollama │ │ │ ├── test_openai_chat_model_acomplete_ollama[Return True.-output_types1-bool].yaml │ │ │ ├── test_openai_chat_model_acomplete_ollama[Return [1, 2, 3, 4, 5]-output_types2-list].yaml │ │ │ ├── test_openai_chat_model_acomplete_ollama[Say hello!-output_types0-str].yaml │ │ │ ├── test_openai_chat_model_complete_ollama[Return True.-output_types1-bool].yaml │ │ │ ├── test_openai_chat_model_complete_ollama[Return [1, 2, 3, 4, 5]-output_types2-list].yaml │ │ │ └── test_openai_chat_model_complete_ollama[Say hello!-output_types0-str].yaml │ │ ├── test_openai_chat_model_xai │ │ │ ├── test_openai_chat_model_xai_acomplete[Return True.-output_types1-bool].yaml │ │ │ ├── test_openai_chat_model_xai_acomplete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml │ │ │ ├── test_openai_chat_model_xai_acomplete[Return a list of fruit-output_types3-list].yaml │ │ │ ├── test_openai_chat_model_xai_acomplete[Say hello!-output_types0-str].yaml │ │ │ ├── test_openai_chat_model_xai_complete[Return True.-output_types1-bool].yaml │ │ │ ├── test_openai_chat_model_xai_complete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml │ │ │ ├── test_openai_chat_model_xai_complete[Return a list of fruit-output_types3-list].yaml │ │ │ ├── test_openai_chat_model_xai_complete[Say hello!-output_types0-str].yaml │ │ │ └── test_openai_chat_model_xai_complete_image_bytes.yaml │ │ ├── test_openrouter_chat_model │ │ │ ├── test_openrouter_chat_model_acomplete_async_streamed_response.yaml │ │ │ ├── test_openrouter_chat_model_acomplete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_openrouter_chat_model_acomplete_usage.yaml │ │ │ ├── test_openrouter_chat_model_acomplete_usage_structured_output.yaml │ │ │ ├── test_openrouter_chat_model_api_key.yaml │ │ │ ├── test_openrouter_chat_model_complete_base_url.yaml │ │ │ ├── test_openrouter_chat_model_complete_function_call_openai_strict.yaml │ │ │ ├── test_openrouter_chat_model_complete_image_bytes.yaml │ │ │ ├── test_openrouter_chat_model_complete_no_structured_output_error.yaml │ │ │ ├── test_openrouter_chat_model_complete_pydantic_model_openai_strict.yaml │ │ │ ├── test_openrouter_chat_model_complete_raises_tool_schema_parse_error.yaml │ │ │ ├── test_openrouter_chat_model_complete_seed.yaml │ │ │ ├── test_openrouter_chat_model_complete_streamed_response.yaml │ │ │ ├── test_openrouter_chat_model_complete_usage.yaml │ │ │ ├── test_openrouter_chat_model_complete_usage_structured_output.yaml │ │ │ └── test_openrouter_chat_model_reasoning_tokens.yaml │ │ └── test_retry_chat_model │ │ │ ├── test_retry_chat_model_acomplete_anthropic.yaml │ │ │ ├── test_retry_chat_model_acomplete_litellm_openai.yaml │ │ │ ├── test_retry_chat_model_acomplete_openai.yaml │ │ │ ├── test_retry_chat_model_complete_anthropic.yaml │ │ │ ├── test_retry_chat_model_complete_litellm_openai.yaml │ │ │ └── test_retry_chat_model_complete_openai.yaml │ ├── test_anthropic_chat_model.py │ ├── test_litellm_chat_model.py │ ├── test_message.py │ ├── test_mistral_chat_model.py │ ├── test_openai_chat_model.py │ ├── test_openai_chat_model_gemini.py │ ├── test_openai_chat_model_ollama.py │ ├── test_openai_chat_model_xai.py │ ├── test_openrouter_chat_model.py │ └── test_retry_chat_model.py ├── conftest.py ├── data │ ├── python-powered.jpg │ ├── python-powered.png │ └── test.pdf ├── test_backend.py ├── test_chat.py ├── test_chatprompt.py ├── test_formatting.py ├── test_function_call.py ├── test_function_schema.py ├── test_prompt_chain.py ├── test_prompt_function.py ├── test_streaming.py ├── test_typing.py └── test_vision.py └── uv.lock /.env.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.env.template -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/deploy_docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.github/workflows/deploy_docs.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.10 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/README.md -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | magentic.dev 2 | -------------------------------------------------------------------------------- /docs/assets/images/jaeger_describe_weather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/assets/images/jaeger_describe_weather.png -------------------------------------------------------------------------------- /docs/assets/images/logfire_describe_weather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/assets/images/logfire_describe_weather.png -------------------------------------------------------------------------------- /docs/asyncio.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/asyncio.md -------------------------------------------------------------------------------- /docs/chat-prompting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/chat-prompting.md -------------------------------------------------------------------------------- /docs/chat.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/chat.md -------------------------------------------------------------------------------- /docs/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/configuration.md -------------------------------------------------------------------------------- /docs/css/jupyter-notebook.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/css/jupyter-notebook.css -------------------------------------------------------------------------------- /docs/examples/chain_of_verification.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/examples/chain_of_verification.ipynb -------------------------------------------------------------------------------- /docs/examples/rag_github.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/examples/rag_github.ipynb -------------------------------------------------------------------------------- /docs/examples/registering_custom_type.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/examples/registering_custom_type.ipynb -------------------------------------------------------------------------------- /docs/examples/vision_renaming_screenshots.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/examples/vision_renaming_screenshots.ipynb -------------------------------------------------------------------------------- /docs/formatting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/formatting.md -------------------------------------------------------------------------------- /docs/function-calling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/function-calling.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/logging-and-tracing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/logging-and-tracing.md -------------------------------------------------------------------------------- /docs/retrying.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/retrying.md -------------------------------------------------------------------------------- /docs/streaming.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/streaming.md -------------------------------------------------------------------------------- /docs/structured-outputs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/structured-outputs.md -------------------------------------------------------------------------------- /docs/type-checking.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/type-checking.md -------------------------------------------------------------------------------- /docs/vision.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/docs/vision.md -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/magentic/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/__init__.py -------------------------------------------------------------------------------- /src/magentic/_chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/_chat.py -------------------------------------------------------------------------------- /src/magentic/_parsing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/_parsing.py -------------------------------------------------------------------------------- /src/magentic/_pydantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/_pydantic.py -------------------------------------------------------------------------------- /src/magentic/_streamed_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/_streamed_response.py -------------------------------------------------------------------------------- /src/magentic/backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/backend.py -------------------------------------------------------------------------------- /src/magentic/chat_model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/magentic/chat_model/anthropic_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/anthropic_chat_model.py -------------------------------------------------------------------------------- /src/magentic/chat_model/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/base.py -------------------------------------------------------------------------------- /src/magentic/chat_model/function_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/function_schema.py -------------------------------------------------------------------------------- /src/magentic/chat_model/litellm_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/litellm_chat_model.py -------------------------------------------------------------------------------- /src/magentic/chat_model/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/message.py -------------------------------------------------------------------------------- /src/magentic/chat_model/mistral_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/mistral_chat_model.py -------------------------------------------------------------------------------- /src/magentic/chat_model/openai_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/openai_chat_model.py -------------------------------------------------------------------------------- /src/magentic/chat_model/openrouter_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/openrouter_chat_model.py -------------------------------------------------------------------------------- /src/magentic/chat_model/retry_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/retry_chat_model.py -------------------------------------------------------------------------------- /src/magentic/chat_model/stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chat_model/stream.py -------------------------------------------------------------------------------- /src/magentic/chatprompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/chatprompt.py -------------------------------------------------------------------------------- /src/magentic/formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/formatting.py -------------------------------------------------------------------------------- /src/magentic/function_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/function_call.py -------------------------------------------------------------------------------- /src/magentic/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/logger.py -------------------------------------------------------------------------------- /src/magentic/prompt_chain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/prompt_chain.py -------------------------------------------------------------------------------- /src/magentic/prompt_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/prompt_function.py -------------------------------------------------------------------------------- /src/magentic/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/py.typed -------------------------------------------------------------------------------- /src/magentic/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/settings.py -------------------------------------------------------------------------------- /src/magentic/streaming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/streaming.py -------------------------------------------------------------------------------- /src/magentic/typing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/typing.py -------------------------------------------------------------------------------- /src/magentic/vision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/src/magentic/vision.py -------------------------------------------------------------------------------- /tests/cassettes/test_backend/test_openai_chat_model_completion.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_backend/test_openai_chat_model_completion.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_chat/test_chat_asubmit.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_chat/test_chat_asubmit.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_chat/test_chat_submit.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_chat/test_chat_submit.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_chatprompt/test_chatprompt_readme_example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_chatprompt/test_chatprompt_readme_example.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_chatprompt/test_chatprompt_with_function_call_and_result.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_chatprompt/test_chatprompt_with_function_call_and_result.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_chatprompt/test_chatprompt_with_image_bytes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_chatprompt/test_chatprompt_with_image_bytes.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_chain/test_async_prompt_chain.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_chain/test_async_prompt_chain.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_chain/test_async_prompt_chain_messages.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_chain/test_async_prompt_chain_messages.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_chain/test_prompt_chain.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_chain/test_prompt_chain.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_chain/test_prompt_chain_messages.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_chain/test_prompt_chain_messages.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_async_decorator_max_retries.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_async_decorator_max_retries.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_async_decorator_return_async_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_async_decorator_return_async_function_call.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_async_decorator_return_async_streamed_str.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_async_decorator_return_async_streamed_str.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_async_decorator_return_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_async_decorator_return_function_call.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_async_decorator_return_str.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_async_decorator_return_str.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_ignore_multiple_tool_calls.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_ignore_multiple_tool_calls.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_input_pydantic_model.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_input_pydantic_model.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_max_retries.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_max_retries.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_async_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_async_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_bool.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_bool.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_bool_str.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_bool_str.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_function_call.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_pydantic_model.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_pydantic_model.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_str.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_str.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_prompt_function/test_decorator_return_streamed_str.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_prompt_function/test_decorator_return_streamed_str.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_vision/test_chatprompt_with_user_image_message.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_vision/test_chatprompt_with_user_image_message.yaml -------------------------------------------------------------------------------- /tests/cassettes/test_vision/test_chatprompt_with_user_image_message_anthropic.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/cassettes/test_vision/test_chatprompt_with_user_image_message_anthropic.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[List three fruits-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[List three fruits-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_async_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_async_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_async_streamed_response.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_async_streamed_response.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_acomplete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[List three fruits-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[List three fruits-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_document_bytes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_document_bytes.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_image_bytes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_image_bytes.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_no_structured_output_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_no_structured_output_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_streamed_response.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_streamed_response.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_anthropic_chat_model/test_anthropic_chat_model_complete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic_async_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic_async_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_anthropic_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_ollama[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_ollama[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[List three fruits-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[List three fruits-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_openai[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_acomplete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_anthropic_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_ollama[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_ollama[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[List three fruits-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[List three fruits-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_openai[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_complete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_custom_llm_provider.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_custom_llm_provider.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_custom_llm_provider_async.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_custom_llm_provider_async.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_extra_headers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_extra_headers.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_metadata.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_metadata.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_metadata_async.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_litellm_chat_model/test_litellm_chat_model_metadata_async.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[List three fruits-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[List three fruits-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_async_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_async_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_acomplete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[List three fruits-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[List three fruits-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[Return True-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[Return True-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[Return the numbers 1 to 5-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[Return the numbers 1 to 5-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_parallel_function_call.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_parallel_function_call.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_complete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_few_shot_prompt.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_mistral_chat_model/test_mistral_chat_model_few_shot_prompt.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_async_streamed_response.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_async_streamed_response.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_acomplete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_api_key.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_api_key.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_base_url.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_base_url.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_function_call_openai_strict.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_function_call_openai_strict.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_image_bytes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_image_bytes.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_max_completion_tokens.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_max_completion_tokens.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_no_structured_output_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_no_structured_output_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_pydantic_model_openai_strict.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_pydantic_model_openai_strict.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_seed.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_seed.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_streamed_response.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_streamed_response.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_complete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_reasoning_effort.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_reasoning_effort.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_verbosity.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model/test_openai_chat_model_verbosity.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Return True.-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Return True.-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Return a list of fruit-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Return a list of fruit-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_acomplete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Return True.-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Return True.-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Return a list of fruit-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Return a list of fruit-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_gemini/test_openai_chat_model_gemini_complete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_acomplete_ollama[Return True.-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_acomplete_ollama[Return True.-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_acomplete_ollama[Return [1, 2, 3, 4, 5]-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_acomplete_ollama[Return [1, 2, 3, 4, 5]-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_acomplete_ollama[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_acomplete_ollama[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_complete_ollama[Return True.-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_complete_ollama[Return True.-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_complete_ollama[Return [1, 2, 3, 4, 5]-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_complete_ollama[Return [1, 2, 3, 4, 5]-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_complete_ollama[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_ollama/test_openai_chat_model_complete_ollama[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Return True.-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Return True.-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Return a list of fruit-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Return a list of fruit-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_acomplete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Return True.-output_types1-bool].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Return True.-output_types1-bool].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Return [1, 2, 3, 4, 5]-output_types2-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Return a list of fruit-output_types3-list].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Return a list of fruit-output_types3-list].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Say hello!-output_types0-str].yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete[Say hello!-output_types0-str].yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete_image_bytes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openai_chat_model_xai/test_openai_chat_model_xai_complete_image_bytes.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_async_streamed_response.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_async_streamed_response.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_acomplete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_api_key.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_api_key.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_base_url.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_base_url.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_function_call_openai_strict.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_function_call_openai_strict.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_image_bytes.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_image_bytes.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_no_structured_output_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_no_structured_output_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_pydantic_model_openai_strict.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_pydantic_model_openai_strict.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_raises_tool_schema_parse_error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_raises_tool_schema_parse_error.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_seed.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_seed.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_streamed_response.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_streamed_response.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_usage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_usage.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_usage_structured_output.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_complete_usage_structured_output.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_reasoning_tokens.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_openrouter_chat_model/test_openrouter_chat_model_reasoning_tokens.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_acomplete_anthropic.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_acomplete_anthropic.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_acomplete_litellm_openai.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_acomplete_litellm_openai.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_acomplete_openai.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_acomplete_openai.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_complete_anthropic.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_complete_anthropic.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_complete_litellm_openai.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_complete_litellm_openai.yaml -------------------------------------------------------------------------------- /tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_complete_openai.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/cassettes/test_retry_chat_model/test_retry_chat_model_complete_openai.yaml -------------------------------------------------------------------------------- /tests/chat_model/test_anthropic_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_anthropic_chat_model.py -------------------------------------------------------------------------------- /tests/chat_model/test_litellm_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_litellm_chat_model.py -------------------------------------------------------------------------------- /tests/chat_model/test_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_message.py -------------------------------------------------------------------------------- /tests/chat_model/test_mistral_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_mistral_chat_model.py -------------------------------------------------------------------------------- /tests/chat_model/test_openai_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_openai_chat_model.py -------------------------------------------------------------------------------- /tests/chat_model/test_openai_chat_model_gemini.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_openai_chat_model_gemini.py -------------------------------------------------------------------------------- /tests/chat_model/test_openai_chat_model_ollama.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_openai_chat_model_ollama.py -------------------------------------------------------------------------------- /tests/chat_model/test_openai_chat_model_xai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_openai_chat_model_xai.py -------------------------------------------------------------------------------- /tests/chat_model/test_openrouter_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_openrouter_chat_model.py -------------------------------------------------------------------------------- /tests/chat_model/test_retry_chat_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/chat_model/test_retry_chat_model.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/data/python-powered.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/data/python-powered.jpg -------------------------------------------------------------------------------- /tests/data/python-powered.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/data/python-powered.png -------------------------------------------------------------------------------- /tests/data/test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/data/test.pdf -------------------------------------------------------------------------------- /tests/test_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_backend.py -------------------------------------------------------------------------------- /tests/test_chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_chat.py -------------------------------------------------------------------------------- /tests/test_chatprompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_chatprompt.py -------------------------------------------------------------------------------- /tests/test_formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_formatting.py -------------------------------------------------------------------------------- /tests/test_function_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_function_call.py -------------------------------------------------------------------------------- /tests/test_function_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_function_schema.py -------------------------------------------------------------------------------- /tests/test_prompt_chain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_prompt_chain.py -------------------------------------------------------------------------------- /tests/test_prompt_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_prompt_function.py -------------------------------------------------------------------------------- /tests/test_streaming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_streaming.py -------------------------------------------------------------------------------- /tests/test_typing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_typing.py -------------------------------------------------------------------------------- /tests/test_vision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/tests/test_vision.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackmpcollins/magentic/HEAD/uv.lock --------------------------------------------------------------------------------