_create_run() — langchain Function Reference
Architecture documentation for the _create_run() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 24d4664f_f871_cae2_c0d0_ab58f161c9c9["_create_run()"] 40171661_732e_8178_c8ae_92254ace13fe["OpenAIAssistantRunnable"] 24d4664f_f871_cae2_c0d0_ab58f161c9c9 -->|defined in| 40171661_732e_8178_c8ae_92254ace13fe addd6899_a5cd_0e3e_74c7_bb99653507b2["invoke()"] addd6899_a5cd_0e3e_74c7_bb99653507b2 -->|calls| 24d4664f_f871_cae2_c0d0_ab58f161c9c9 style 24d4664f_f871_cae2_c0d0_ab58f161c9c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/openai_assistant/base.py lines 542–564
def _create_run(self, input_dict: dict) -> Any:
params = {
k: v
for k, v in input_dict.items()
if k
in (
"instructions",
"model",
"tools",
"additional_instructions",
"parallel_tool_calls",
"top_p",
"temperature",
"max_completion_tokens",
"max_prompt_tokens",
"run_metadata",
)
}
return self.client.beta.threads.runs.create(
input_dict["thread_id"],
assistant_id=self.assistant_id,
**params,
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _create_run() do?
_create_run() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/openai_assistant/base.py.
Where is _create_run() defined?
_create_run() is defined in libs/langchain/langchain_classic/agents/openai_assistant/base.py at line 542.
What calls _create_run()?
_create_run() is called by 1 function(s): invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free