Home / Function/ _acreate_run() — langchain Function Reference

_acreate_run() — langchain Function Reference

Architecture documentation for the _acreate_run() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  61ac9a4a_29ef_b7be_6108_04608b568d8f["_acreate_run()"]
  09337f8e_7eda_ea1a_ab7c_b599191c842b["OpenAIAssistantRunnable"]
  61ac9a4a_29ef_b7be_6108_04608b568d8f -->|defined in| 09337f8e_7eda_ea1a_ab7c_b599191c842b
  666ede5f_25fb_4c54_fe54_dfae6937ed57["ainvoke()"]
  666ede5f_25fb_4c54_fe54_dfae6937ed57 -->|calls| 61ac9a4a_29ef_b7be_6108_04608b568d8f
  style 61ac9a4a_29ef_b7be_6108_04608b568d8f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/openai_assistant/base.py lines 699–721

    async def _acreate_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 await self.async_client.beta.threads.runs.create(
            input_dict["thread_id"],
            assistant_id=self.assistant_id,
            **params,
        )

Subdomains

Called By

Frequently Asked Questions

What does _acreate_run() do?
_acreate_run() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/openai_assistant/base.py.
Where is _acreate_run() defined?
_acreate_run() is defined in libs/langchain/langchain_classic/agents/openai_assistant/base.py at line 699.
What calls _acreate_run()?
_acreate_run() is called by 1 function(s): ainvoke.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free