[KongchangAI]
ConceptFunction Calling / 工具调用

Tool Calling

Tool Calling is a capability mechanism that enables large language models (LLMs) to interact with external tools or APIs. During response generation, the model can identify user intent and produce structured tool-invocation instructions; the runtime environment then executes the corresponding functions or services and returns results to the model. This enables tasks beyond pure text generation, such as information retrieval, code execution, and data manipulation, and is a foundational capability for building AI agents and complex automated workflows.

Core Facts

Timeline (last 90 days)

Nov 18

Java programmers transitioning to AI development need to learn to use Spring AI or Langchain4j to call large models, and master concepts such as streaming output, memory caching, prompt engineering, vector databases, RAG, MCP, and Tool Calling.

Unverified50%
Nov 16

Traditional tool invocation requires tool schemas to be statically registered before a session begins, and the model can only choose from an existing list; Coral's difference is that tool schemas are produced by the model at runtime and then handed to the gateway for registration and scheduling.

Unverified50%
Nov 12

Different hosts define tool names, parameter schemas and return formats differently, and even the same capability has inconsistent signatures across platforms.

Unverified50%
Nov 8

Behind a tool call is a multi-round loop: the model first returns a tool call request rather than a final answer; the program executes the corresponding function, appends the return value as a tool result message to the conversation history, and requests the model again; the model decides based on the result whether to keep calling other tools or give a natural language answer, possibly repeating multiple times until the final answer is output.

Unverified50%
Nov 7

The model itself does not actually operate files or send requests; it only generates invocation intents, and what actually carries out execution is the Harness.

Unverified50%
Oct 27

Models typically treat the `success` returned by a tool as fact rather than independently verifying system state, stemming from the high correlation between tool returns and task completion in their training data.

Unverified50%
Oct 25

A tool call is essentially a special kind of text completion: the model is not running a program, but predicting which tool should be called and what parameters to pass.

Unverified50%
Oct 23

In the Tool Calling mechanism, AI models generate a JSON Schema to describe the function names and parameters to be called, thereby avoiding hallucinated execution.

Unverified50%
Oct 20

In a stateless function, the full context must be serialized and passed to the next round between each round of tool calls; the longer the call chain, the higher the overhead and the probability of errors.

Unverified50%
Oct 20

A Tool in LangChain is usually a Python function with a name, description, and parameter schema, and the Agent uses prompts to let the model understand the available tools and their applicable scenarios.

Unverified50%

35 more timeline events

All Facts (20)

Verified

The basic principle of tool calling is that the model identifies scenarios requiring external capabilities, outputs a structured function call request (usually in JSON format), and after the external system executes it, the result is returned to the model to continue reasoning.

90%
Verified

After the client receives the tool execution result, it needs to construct a message with the role set to tool, carrying the corresponding tool_call_id and execution result to send back to the model.

90%
Verified

Function Calling (Tool Use) is a standardized mechanism for large models to invoke external tools, where developers pre-declare tool names, descriptions, and parameter schemas, and the model autonomously determines when to make a call.

90%
Verified

The underlying mechanism of Tool Use is that developers pre-define the name, description, and parameter structure (Schema) of tools, and the model determines during inference when and which tool to call and outputs structured invocation instructions.

90%
Verified

Tools are essentially function wrappers for external capabilities, paired with JSON Schema descriptions that enable the model to understand a tool's functionality and parameter format.

90%
Verified

Since 2024, companies including OpenAI, Anthropic, and Google have successively launched agent frameworks.

90%
Verified

The Deep Research feature decomposes a single user query into multi-step autonomous research tasks, invokes tools such as web search and document analysis, and uses large language model reasoning to synthesize and output a structured report.

80%
Verified

Function Call does not actually execute code; the model only outputs a structured JSON string, and the actual execution is performed by the host program.

80%
Verified

Agents use the Tool Calling mechanism to allow models to output calling intent in a structured JSON format, with external programs executing the actual operations and feeding results back to the model.

80%
Verified

Function calling (tool calling) refers to the ability of a large language model to proactively request the invocation of external functions or APIs during the generation of a response.

80%
Verified

The core capability of coding agents is tool calling (Tool Calling / Function Calling), in which the model outputs structured call instructions that the agent framework executes and feeds the results back to form a closed loop.

75%
Verified

AI SDK is a toolkit that helps developers build AI applications by abstracting common logic for interacting with large language models, such as streaming responses, message state management, and tool invocation.

75%
Verified

The key breakthrough in tool-calling capability lies in the model's ability to generate structured function-call requests and correctly parse tool return results before continuing to reason, rather than simply concatenating tool outputs into the prompt

75%
Verified

LangChain is an open-source framework whose core capability is combining large language models with external computing resources and data sources.

75%
Verified

The naming, description, and parameter documentation of a tool are the key context for an Agent to decide when to call it, and can be understood as a form of prompt engineering.

70%
Verified

OpenAI's function calling/tool use mechanism is a hard constraint; the model inference engine directly constrains the valid set of output tokens during the decoding phase, thereby guaranteeing format compliance at the protocol level.

70%
Verified

The perception→reasoning→invocation→feedback loop of function calling is the engineering implementation of the ReAct (Reasoning + Acting) framework.

70%
Verified

In tool calling, the model may generate parameters that do not conform to the Schema, omit required fields, or confuse tools across multiple rounds of calls, so production environments usually need a validation and fault-tolerance layer between the model and the tools.

65%
Verified

Tool Calling is a capability of large language models: when generating a reply, the model outputs structured JSON indicating which function to call and what parameters to pass, but the model only outputs intent and does not execute code; the responsibility for execution lies on the application side.

65%
Verified

An agent is essentially a loop in code around a model: construct a prompt, hand it to the model for a decision, have code execute the tools and put the results back into the prompt, and repeat until the model produces a final answer

65%

Source Articles