ChatResult¶
-
class
oci.generative_ai_agent_runtime.models.ChatResult(**kwargs)¶ Bases:
objectThe response of a chat request.
Methods
__init__(**kwargs)Initializes a new ChatResult object with values from keyword arguments. Attributes
guardrail_resultGets the guardrail_result of this ChatResult. messageGets the message of this ChatResult. required_actionsGets the required_actions of this ChatResult. tool_outputsGets the tool_outputs of this ChatResult. tool_resultsGets the tool_results of this ChatResult. tracesGets the traces of this ChatResult. -
__init__(**kwargs)¶ Initializes a new ChatResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - message (oci.generative_ai_agent_runtime.models.Message) – The value to assign to the message property of this ChatResult.
- traces (list[oci.generative_ai_agent_runtime.models.Trace]) – The value to assign to the traces property of this ChatResult.
- tool_results (dict(str, str)) – The value to assign to the tool_results property of this ChatResult.
- tool_outputs (list[oci.generative_ai_agent_runtime.models.ToolOutput]) – The value to assign to the tool_outputs property of this ChatResult.
- required_actions (list[oci.generative_ai_agent_runtime.models.RequiredAction]) – The value to assign to the required_actions property of this ChatResult.
- guardrail_result (str) – The value to assign to the guardrail_result property of this ChatResult.
-
guardrail_result¶ Gets the guardrail_result of this ChatResult. Captures the result of guardrail evaluations as JSON string performed on either the input to the agent or the output generated by the agent.
Returns: The guardrail_result of this ChatResult. Return type: str
-
message¶ Gets the message of this ChatResult.
Returns: The message of this ChatResult. Return type: oci.generative_ai_agent_runtime.models.Message
-
required_actions¶ Gets the required_actions of this ChatResult. A list of actions the agent requires the user or agent client to perform.
Returns: The required_actions of this ChatResult. Return type: list[oci.generative_ai_agent_runtime.models.RequiredAction]
-
tool_outputs¶ Gets the tool_outputs of this ChatResult. Array of tool outputs in execution order. Each item includes the tool OCID, output type, and corresponding content. The result structure is defined by the toolOutputType discriminator.
Returns: The tool_outputs of this ChatResult. Return type: list[oci.generative_ai_agent_runtime.models.ToolOutput]
-
tool_results¶ Gets the tool_results of this ChatResult. A map where each key is a toolId and the value contains tool type and additional dynamic results. This field is deprecated and will be removed after July 02 2026.
Returns: The tool_results of this ChatResult. Return type: dict(str, str)
-
traces¶ Gets the traces of this ChatResult. The trace that displays the internal progression, such as reasoning and actions during an execution.
Returns: The traces of this ChatResult. Return type: list[oci.generative_ai_agent_runtime.models.Trace]
-