Home / Function/ test_computer_calls() — langchain Function Reference

test_computer_calls() — langchain Function Reference

Architecture documentation for the test_computer_calls() function in test_responses_api.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  acc741a9_5e2e_6385_8342_03029b7b0f2c["test_computer_calls()"]
  992496d5_b7d4_139f_00cf_3e585d851f81["test_responses_api.py"]
  acc741a9_5e2e_6385_8342_03029b7b0f2c -->|defined in| 992496d5_b7d4_139f_00cf_3e585d851f81
  style acc741a9_5e2e_6385_8342_03029b7b0f2c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py lines 394–406

def test_computer_calls() -> None:
    llm = ChatOpenAI(
        model="computer-use-preview", truncation="auto", output_version="v0"
    )
    tool = {
        "type": "computer_use_preview",
        "display_width": 1024,
        "display_height": 768,
        "environment": "browser",
    }
    llm_with_tools = llm.bind_tools([tool], tool_choice="any")
    response = llm_with_tools.invoke("Please open the browser.")
    assert response.additional_kwargs["tool_outputs"]

Domain

Subdomains

Frequently Asked Questions

What does test_computer_calls() do?
test_computer_calls() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py.
Where is test_computer_calls() defined?
test_computer_calls() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py at line 394.

Analyze Your Own Codebase

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

Try Supermodel Free