Please read this first
- Have you read the docs? Yes - Agents SDK docs
- Have you searched for related issues? Yes
Describe the feature
Feature: Add support for manually creating and adding function call items to conversation history via updateHistory.
Current Limitation:
Currently, when using updateHistory() to modify the Realtime API conversation history, function call items are ignored with a warning (see code here):
} else if (addition.type === 'function_call') {
logger.warn(
'Function calls cannot be manually added or updated at the moment. Ignoring.',
);
}
This means that while history_updated events include tool calls in the returned history array (RealtimeItem[] which includes RealtimeToolCallItem), there's no way to manually add or restore tool calls when managing conversation history.
Please read this first
Describe the feature
Feature: Add support for manually creating and adding function call items to conversation history via
updateHistory.Current Limitation:
Currently, when using
updateHistory()to modify the Realtime API conversation history, function call items are ignored with a warning (see code here):This means that while
history_updatedevents include tool calls in the returned history array (RealtimeItem[]which includesRealtimeToolCallItem), there's no way to manually add or restore tool calls when managing conversation history.