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

from signalwire import AgentBase
from signalwire import FunctionResult
agent = AgentBase(name="my-agent", route="/agent")
agent.set_prompt_text("You are a helpful assistant.")
@agent.tool(name="return_large_result", description="Return detailed search results")
def return_large_result(args, raw_data):
return (
FunctionResult("Here are the detailed search results.")
.enable_extensive_data(True)
)
agent.serve()