Add messages with automatic context management - no manual history tracking required
user_id
only)user_id
+ run_id
)user_id
only for persistent data, add run_id
for session-specific contextversion="v2"
parameterIssue | Solution |
---|---|
Context not working | Ensure you’re using version="v2" and consistent user_id |
Wrong context retrieved | Check if you need separate run_id values for different interaction topics |
Missing interaction history | Verify all messages in the interaction thread use the same user_id and run_id |
Too much irrelevant context | Use more specific run_id values to separate different interaction types |