function mergeAgentTools<TContext>(serverTools, clientTools): Tool<SchemaInput, SchemaInput, string, TContext>[];Defined in: packages/ai/src/utilities/chat-params.ts:187
Merge a server-side tool array with the AG-UI client-declared tools received in the request body.
Rules:
TContext = unknown
readonly Tool<SchemaInput, SchemaInput, string, TContext>[]
The server's tool array (e.g. from [myToolDef.server(...)]). Pass directly to chat({ tools }).
readonly object[]
The tools array received from chatParamsFromRequest(...) / chatParamsFromRequestBody(...).
Tool<SchemaInput, SchemaInput, string, TContext>[]
A merged array suitable for chat({ tools }).