How can I find the original source of a transcript...
# agents
p
How can I find the original source of a transcript - whether it's from audio (STT) or chat?
a
# If you're using generate_reply, you can handle it this way — store the ID of the chat message that the model used while generating the reply.
Copy code
async def lol(user_input: str):
    chat_message_input_ids = []
    await config.session.generate_reply(user_input=user_input, allow_interruptions=True)
    for item in config.session._chat_ctx.items:
        if item.type == "message" and item.content[0] == user_input:
            chat_message_input_ids.append(item.id)