langchain.agents.openai_assistant.base.OpenAIAssistantAction¶
class langchain.agents.openai_assistant.base.OpenAIAssistantAction[source]¶
Bases: AgentAction
AgentAction with info needed to submit custom tool output to existing run.
Override init to support instantiation by position for backward compat.
param log: str [Required]¶
Additional information to log about the action.
This log can be used in a few ways. First, it can be used to audit
what exactly the LLM predicted to lead to this (tool, tool_input).
Second, it can be used in future iterations to show the LLMs prior
thoughts. This is useful when (tool, tool_input) does not contain
full information about the LLM prediction (for example, any thought
before the tool/tool_input).
param run_id: str [Required]¶
param thread_id: str [Required]¶
param tool: str [Required]¶
The name of the Tool to execute.
param tool_call_id: str [Required]¶
param tool_input: Union[str, dict] [Required]¶
The input to pass in to the Tool.
param type: Literal['AgentAction'] = 'AgentAction'¶
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Default values are respected, but no other validation is performed.
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values