Skip to content

Commit 320a6b3

Browse files
fix: pass Message as positional arg to Agent.run()
Change agent.run(messages=Message(...)) to agent.run(Message(...)) to match the expected positional signature and avoid potential TypeError. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0b7c3f7 commit 320a6b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ContentProcessor/src/libs/pipeline/handlers/map_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async def execute(self, context: MessageContext) -> StepResult:
263263
run_options = {"logprobs": True, "top_logprobs": 5}
264264

265265
gpt_response = await agent.run(
266-
messages=Message(
266+
Message(
267267
"user",
268268
contents=self._to_agent_framework_contents(user_content),
269269
),

0 commit comments

Comments
 (0)