You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
#
# Copyright (C) 2026 Tencent. All rights reserved.
#
# tRPC-Agent-Python is licensed under Apache-2.0.
""" Tools for the agent. """
from trpc_agent_sdk.sessions import HistoryRecord
def make_user_history_record() -> HistoryRecord:
"""Construct user history record, simulate user's previous conversation history"""
record: dict[str, str] = {
"What's your name?":
"My name is Alice",
"what is the weather like in paris?":
"The weather in Paris is sunny with a pleasant temperature of 25 degrees Celsius. Enjoy the sunshine if you're there!",
"Do you remember my name?":
"It seems I don't have your name stored in my memory. Could you remind me what your name is? I can remember it for future conversations if you'd like!",