CollectorData
init
- id (UUID): The id of the message.
- name (str): The name of the agent.
- role (
Literal["user", "assistant", "system", "function"]): The role of the message. - message (Optional[str], optional): The message. (default: :obj:
None) - function_call (Optional[Dict[str, Any]], optional): The function call. (default: :obj:
None)
from_context
- name (str): The name of the agent.
- context (Dict[str, Any]): The context.
BaseDataCollector
init
step
- role (
Literal["user", "assistant", "system", "tool"]): The role of the message. - name (Optional[str], optional): The name of the agent. (default: :obj:
None) - message (Optional[str], optional): The message to record. (default: :obj:
None) - function_call (Optional[Dict[str, Any]], optional): The function call to record. (default: :obj:
None)
record
- agent (Union[List[ChatAgent], ChatAgent]): The agent(s) to inject.
start
stop
recording
reset
- reset_agents (bool, optional): Whether to reset the agents. Defaults to True.
convert
llm_convert
get_agent_history
- name (str): The name of the agent.