LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangChain
  • Universal
  • Hub
  • Node
  • Load
  • Serializable
  • Encoder Backed
  • File System
  • In Memory
LangChain Core
  • Agents
  • Caches
  • Base
  • Dispatch
  • Web
  • Manager
  • Promises
  • Chat History
  • Context
  • Base
  • Langsmith
  • Documents
  • Embeddings
  • Errors
  • Example Selectors
  • Indexing
  • Base
  • Chat Models
  • Llms
  • Profile
  • Load
  • Serializable
  • Memory
  • Messages
  • Tool
  • Output Parsers
  • Openai Functions
  • Openai Tools
  • Outputs
  • Prompt Values
  • Prompts
  • Retrievers
  • Document Compressors
  • Runnables
  • Graph
  • Singletons
  • Stores
  • Structured Query
  • Tools
  • Base
  • Console
  • Log Stream
  • Run Collector
  • Tracer Langchain
  • Stream
  • Async Caller
  • Chunk Array
  • Context
  • Env
  • Event Source Parse
  • Format
  • Function Calling
  • Hash
  • Json Patch
  • Json Schema
  • Math
  • Ssrf
  • Stream
  • Testing
  • Tiktoken
  • Types
  • Vectorstores
Text Splitters
MCP Adapters
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangChain
UniversalHubNodeLoadSerializableEncoder BackedFile SystemIn Memory
LangChain Core
AgentsCachesBaseDispatchWebManagerPromisesChat HistoryContextBaseLangsmithDocumentsEmbeddingsErrorsExample SelectorsIndexingBaseChat ModelsLlmsProfileLoadSerializableMemoryMessagesToolOutput ParsersOpenai FunctionsOpenai ToolsOutputsPrompt ValuesPromptsRetrieversDocument CompressorsRunnablesGraphSingletonsStoresStructured QueryToolsBaseConsoleLog StreamRun CollectorTracer LangchainStreamAsync CallerChunk ArrayContextEnvEvent Source ParseFormatFunction CallingHashJson PatchJson SchemaMathSsrfStreamTestingTiktokenTypesVectorstores
Text Splitters
MCP Adapters
Language
Theme
JavaScript@langchain/coreutilstestingFakeToolParams
Interface●Since v1.0

FakeToolParams

Parameters for the Tool classes.

Copy
interface FakeToolParams

Bases

ToolParams

Properties

property
callbacks: Callbacks

Callbacks for this call and any sub-calls (eg. a Chain calling an LLM). Tags are passed to all callbacks, metadata is passed to handle*Start callbacks.

property
defaultConfig: ToolRunnableConfig<Record<string, any>, any>

Default config object for the tool runnable.

property
description: string

A description of what the function does, used by the model to choose when and how to call the function.

property
extras: Record<string, unknown>

Optional provider-specific extra fields for the tool.

This is used to pass provider-specific configuration that doesn't fit into standard tool fields.

property
metadata: Record<string, unknown>
property
name: string
property
responseFormat: string

The tool response format.

If "content" then the output of the tool is interpreted as the contents of a ToolMessage. If "content_and_artifact" then the output is expected to be a two-tuple corresponding to the (content, artifact) of a ToolMessage.

property
tags: string[]
property
verbose: boolean
property
verboseParsingErrors: boolean
deprecatedproperty
schema: T

Inherited fromToolParams

Properties

Pcallbacks: Callbacks
—

Callbacks for this call and any sub-calls (eg. a Chain calling an LLM).

PdefaultConfig: ToolRunnableConfig
—

Default config object for the tool runnable.

Pextras: Record<string, unknown>
—

Optional provider-specific extra fields for the tool.

Pmetadata: Record<string, unknown>PresponseFormat: string
—

The tool response format.

Ptags: string[]Pverbose: booleanPverboseParsingErrors: boolean

Inherited fromBaseLangChainParams

Properties

Pcallbacks: Callbacks
—

Callbacks for this call and any sub-calls (eg. a Chain calling an LLM).

Pmetadata: Record<string, unknown>Ptags: string[]Pverbose: boolean
View source on GitHub