This commit is contained in:
Slipstream 2025-04-28 22:11:25 -06:00
parent 143d8a6414
commit 735bf6d76f
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -318,7 +318,8 @@ async def get_ai_response(cog: 'GurtCog', message: discord.Message, model_name:
logger.info(f"Querying LangchainAgent for message {message.id}...")
# The agent handles retries, tool calls, history management internally.
# We pass the channel_id as the session_id for history persistence.
agent_response = await agent.query(
# NOTE: agent.query() appears to be synchronous, removed await.
agent_response = agent.query(
input=final_input_string,
config={"configurable": {"session_id": str(channel_id)}}
)