Skip to content

feat(agent): expose mode on AgentExecutionConfig - #205

Merged
dineshreddy91 merged 2 commits into
mainfrom
cursor/expose-agent-execution-mode-8fd1
Jul 24, 2026
Merged

feat(agent): expose mode on AgentExecutionConfig#205
dineshreddy91 merged 2 commits into
mainfrom
cursor/expose-agent-execution-mode-8fd1

Conversation

@dineshreddy91

Copy link
Copy Markdown
Contributor

Summary

Exposes the Orion-2 execution mode field on AgentExecutionConfig and bumps the package version to 0.7.1 for release.

Problem

The API accepts config.mode ("agent" | "program") on agent execute requests, but the Python SDK did not define this field. As a result, mode="agent" was silently ignored and the server defaulted to "program".

Changes

  • Add mode: Literal["agent", "program"] | None to AgentExecutionConfig
  • Serialize mode via existing config.model_dump(exclude_none=True) in agent.execute()
  • Add unit tests for validation and serialization
  • Bump version to 0.7.1

Usage

from vlmrun.client.types import AgentExecutionConfig

response = client.agent.execute(
    inputs={"file": "https://example.com/document.pdf"},
    model="vlmrun-orion-2:pro",
    config=AgentExecutionConfig(
        mode="agent",
        skills=[{"skill_id": "my-skill-id"}],
    ),
)

Note: the response field is execution_mode (not mode), per the API schema.

Testing

  • pytest -sv tests/test_agent.py::TestAgentConfigModels

Slack Thread

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 24, 2026 19:28
Add the Orion-2 execution mode field (agent | program) to
AgentExecutionConfig so it is serialized into the execute request
config payload, matching the API and docs.

Co-authored-by: dineshreddy <dineshreddy91@users.noreply.github.com>
Co-authored-by: dineshreddy <dineshreddy91@users.noreply.github.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@dineshreddy91
dineshreddy91 marked this pull request as ready for review July 24, 2026 20:15
@dineshreddy91
dineshreddy91 merged commit b8510f5 into main Jul 24, 2026
4 of 5 checks passed
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants