LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coretoolsbaseBaseToolargs_schema
    Attribute●Since v0.2

    args_schema

    Pydantic model class to validate and parse the tool's input arguments.

    Args schema should be either:

    • A subclass of pydantic.BaseModel.
    • A subclass of pydantic.v1.BaseModel if accessing v1 namespace in pydantic 2
    • A JSON schema dict
    Copy
    args_schema: Annotated[ArgsSchema | None, SkipValidation(
      )] = Field(default=None, description='The tool schema.'
    )
    View source on GitHub