enable_extensive_data

View as MarkdownOpen in Claude

Send full data to the LLM for the current turn only. On subsequent turns, the full data is replaced with a smaller summary. Useful for one-time data-heavy responses that would otherwise bloat the conversation history.

Parameters

enabled
boolDefaults to True

True to send extensive data this turn, False to disable.

Returns

FunctionResult — self, for chaining.

Example

1from signalwire import AgentBase
2from signalwire import FunctionResult
3
4agent = AgentBase(name="my-agent", route="/agent")
5agent.set_prompt_text("You are a helpful assistant.")
6
7@agent.tool(name="return_large_result", description="Return detailed search results")
8def return_large_result(args, raw_data):
9 return (
10 FunctionResult("Here are the detailed search results.")
11 .enable_extensive_data(True)
12 )
13
14agent.serve()