langchain.agents.openai_assistant.base.OpenAIAssistantFinish¶
class langchain.agents.openai_assistant.base.OpenAIAssistantFinish[source]¶
Bases: AgentFinish
AgentFinish with run and thread metadata.
Override init to support instantiation by position for backward compat.
param log: str [Required]¶
Additional information to log about the return value.
This is used to pass along the full LLM prediction, not just the parsed out
return value. For example, if the full LLM prediction was
Final Answer: 2 you may want to just return 2 as a return value, but pass
along the full string as a log (for debugging or observability purposes).
param return_values: dict [Required]¶
Dictionary of return values.
param run_id: str [Required]¶
param thread_id: str [Required]¶
param type: Literal['AgentFinish'] = 'AgentFinish'¶
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
copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny] = None, deep: bool = False) → Model¶
Duplicate a model, optionally choose which fields to include, exclude and change.
Parameters
include – fields to include in new model
exclude – fields to exclude from new model, as with values this takes precedence over include