Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add extra_create_args to AssistantAgent for model client custom… #5213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Run poe check
  • Loading branch information
gagb committed Jan 27, 2025
commit a7ee98b9084fe575a9ef10fbbc73cec7c9eb3772
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
SystemMessage,
UserMessage,
)
from autogen_core.tools import FunctionTool, BaseTool
from autogen_core.tools import BaseTool, FunctionTool
from pydantic import BaseModel
from typing_extensions import Self

@@ -388,7 +388,10 @@ async def on_messages_stream(
# Generate an inference result based on the current model context.
llm_messages = self._system_messages + await self._model_context.get_messages()
model_result = await self._model_client.create(
llm_messages, tools=self._tools + self._handoff_tools, extra_create_args=self._extra_create_args, cancellation_token=cancellation_token
llm_messages,
tools=self._tools + self._handoff_tools,
extra_create_args=self._extra_create_args,
cancellation_token=cancellation_token,
)

# Add the response to the model context.
Loading