chore: import upstream snapshot with attribution
Ruff / Ruff (push) Has been cancelled
Test / Core Tests (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.10) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.11) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.12) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.13) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.9) (push) Has been cancelled
Test / Full Coverage (Python 3.11) (push) Has been cancelled
Test / Core Provider Tests (OpenAI) (push) Has been cancelled
Test / Core Provider Tests (Anthropic) (push) Has been cancelled
Test / Core Provider Tests (Google) (push) Has been cancelled
Test / Core Provider Tests (Other) (push) Has been cancelled
Test / Anthropic Tests (push) Has been cancelled
Test / Gemini Tests (push) Has been cancelled
Test / Google GenAI Tests (push) Has been cancelled
Test / Vertex AI Tests (push) Has been cancelled
Test / OpenAI Tests (push) Has been cancelled
Test / Writer Tests (push) Has been cancelled
Test / Auto Client Tests (push) Has been cancelled
ty / type-check (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:36:38 +08:00
commit 97e91a83f3
978 changed files with 159975 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
"""Processing components for request/response handling."""
from .function_calls import ResponseSchema, response_schema, OpenAISchema, openai_schema
from .multimodal import convert_messages
from .response import (
handle_response_model,
process_response,
process_response_async,
handle_reask_kwargs,
)
from .schema import (
generate_openai_schema,
generate_anthropic_schema,
generate_gemini_schema,
)
from .validators import Validator
__all__ = [
"ResponseSchema",
"response_schema",
"OpenAISchema",
"openai_schema",
"convert_messages",
"handle_response_model",
"process_response",
"process_response_async",
"handle_reask_kwargs",
"generate_openai_schema",
"generate_anthropic_schema",
"generate_gemini_schema",
"Validator",
]
+8
View File
@@ -0,0 +1,8 @@
"""Compatibility exports for v2-owned function-call helpers."""
from instructor.v2.core.function_calls import * # noqa: F401, F403
from instructor.v2.core.function_calls import ( # noqa: F401
_extract_text_content,
_handle_incomplete_output,
_validate_model_from_json,
)
+8
View File
@@ -0,0 +1,8 @@
"""Compatibility exports for v2-owned multimodal helpers."""
from instructor.v2.core import multimodal as _multimodal
from instructor.v2.core.multimodal import * # noqa: F403
# Preserve the historical patching surface for callers that still target the
# compatibility module directly.
requests = _multimodal.requests
+3
View File
@@ -0,0 +1,3 @@
"""Compatibility exports for v2-owned response processing."""
from instructor.v2.core.response import * # noqa: F401, F403
+13
View File
@@ -0,0 +1,13 @@
"""Compatibility exports for v2-owned schema generation helpers."""
from instructor.v2.core.schema import (
generate_anthropic_schema,
generate_gemini_schema,
generate_openai_schema,
)
__all__ = [
"generate_openai_schema",
"generate_anthropic_schema",
"generate_gemini_schema",
]
+3
View File
@@ -0,0 +1,3 @@
"""Compatibility exports for v2-owned validator helpers."""
from instructor.v2.core.validators import * # noqa: F401, F403