None
) model (Union[BaseModelBackend, Tuple[str, str], str, ModelType, Tuple[ModelPlatformType, ModelType], List[BaseModelBackend], List[str], List[ModelType], List[Tuple[str, str]], List[Tuple[ModelPlatformType, ModelType]]], optional): The model backend(s) to use. Can be a single instance, a specification (string, enum, tuple), or a list of instances or specifications to be managed by ModelManager
. If a list of specifications (not BaseModelBackend
instances) is provided, they will be instantiated using ModelFactory
. (default: :obj:ModelPlatformType.DEFAULT
with ModelType.DEFAULT
)None
, a :obj:ChatHistoryMemory
will be used. (default: :obj:None
)None
, no windowing is performed. (default: :obj:None
)None
, it will be set according to the backend model. (default: :obj:None
)None
)FunctionTool
or :obj:Callable
. (default: :obj:None
) toolkits_to_register_agent (Optional[List[RegisteredAgentToolkit]], optional): List of toolkit instances that inherit from :obj:RegisteredAgentToolkit
. The agent will register itself with these toolkits, allowing them to access the agent instance. Note: This does NOT add the toolkit’s tools to the agent. To use tools from these toolkits, pass them explicitly via the tools
parameter. (default: :obj:None
) external_tools (Optional[List[Union[FunctionTool, Callable, Dict[str, Any]]]], optional): List of external tools (:obj:FunctionTool
or :obj:Callable
or :obj:Dict[str, Any]
) bind to one chat agent. When these tools are called, the agent will directly return the request instead of processing it. (default: :obj:None
)ResponseTerminator
bind to one chat agent. (default: :obj:None
)round_robin
)None
(default), there’s no explicit limit. If 1
, it performs a single model call. If N > 1
, it allows up to N model calls. (default: :obj:None
)None
)None
)False
)None
)False
)ChatAgent
to its initial state.
ScoreBasedContextCreator
where an over-sized message cannot fit
into the available token budget at all.
This slicing logic handles both regular text messages (in the
content
field) and long tool call results (in the result
field of
a FunctionCallingMessage
).
Parameters:
None
, the current time will be used. (default: :obj:None
) (default: obj:None
)ChatAgent
from the backend. Currently,
the choice of the critic is submitted with this method.
Parameters:
role
is adjusted to user
to indicate an external message.None
)False
)ChatAgent
with the same
configuration as the current instance.
Parameters:
False
)ChatAgent
with the same
configuration.
ChatAgent
.
CAMEL-ChatAgent
)A helpful assistant using the CAMEL AI framework.
)None
)localhost
)8000
)