MCPcopy
hub / github.com/langchain-ai/langchain / Schema

Class Schema

libs/core/tests/unit_tests/utils/test_function_calling.py:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55@pytest.fixture()
56def dummy_tool() -> BaseTool:
57 class Schema(BaseModel):
58 arg1: int = Field(..., description="foo")
59 arg2: Literal["bar", "baz"] = Field(..., description="one of 'bar', 'baz'")
60
61 class DummyFunction(BaseTool):
62 args_schema: Type[BaseModel] = Schema

Callers 9

chain.pyFile · 0.50
chain.pyFile · 0.50
chain.pyFile · 0.50
on_llm_endMethod · 0.50
from_llmMethod · 0.50
load_schemasFunction · 0.50

Calls

no outgoing calls