this for fluent chaining.
Methods
setInput(input: unknown): this
Set the input passed to the tool.
Overrides the base FiddlerSpan.setInput to write to
gen_ai.tool.input instead of gen_ai.llm.input.user.
Tool input (string or serializable object).
return
this for chaining.setOutput(output: unknown): this
Set the output returned by the tool.
Overrides the base FiddlerSpan.setOutput to write to
gen_ai.tool.output instead of gen_ai.llm.output.
Tool output (string or serializable object).
return
this for chaining.setToolDefinitions(definitions: Record<string, unknown>[]): this
Set the tool/function definitions available in this context.
Array of tool definition objects.
return
this for chaining.setToolName(name: string): this
Set the canonical tool/function name.
Tool name (e.g.
"web_search", "calculator").return
this for chaining.