Skip to content

feat(auto_ontology_agent): run Auto Ontology on BIRD-Interact c-Interact - #5633

Closed
ffrujeri wants to merge 2 commits into
ffrujeri/bird-interact-management-tasksfrom
ffrujeri/auto-ontology-agent
Closed

ffrujeri wants to merge 2 commits into
ffrujeri/bird-interact-management-tasksfrom
ffrujeri/auto-ontology-agent

Conversation

@ffrujeri

@ffrujeri ffrujeri commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Top of the BIRD-Interact stack: #5465 → #5409 → #5473 → #5475 → #5478 → #5534 → this PR. It has two commits:

  1. The Auto Ontology agent from feat(auto_ontology_agent): run Auto Ontology's ReAct agent as an Agent Server, on BIRD dev #6271 (on main, BIRD dev), carried here until feat(auto_ontology_agent): run Auto Ontology's ReAct agent as an Agent Server, on BIRD dev #6271 merges; this stack then rebases onto main and the commit drops out of this diff. Review it in feat(auto_ontology_agent): run Auto Ontology's ReAct agent as an Agent Server, on BIRD dev #6271.
  2. This PR's change: the c-Interact mode of that agent, for BIRD-Interact.

What changed

Auto Ontology's interactive mode (auto_ontology.retrieval.interactive, still in its main at a630ebd) advances a session one action at a time: ask the user, or submit SQL, which it now writes with its ReAct agent.

  • The session. A seed with continuation and one direct HTTP grant for the episode's ask_user and submit_sql is a c-Interact session; a seed without continuation stays a one-question session (feat(auto_ontology_agent): run Auto Ontology's ReAct agent as an Agent Server, on BIRD dev #6271). The bird_interact Environment Server activates the session once for each turn. In a turn, the agent steps Auto Ontology until it submits, running each action as an episode tool, and records the calls in the response and the trajectory. A turn that does not submit within the question budget plus step_margin steps ends without a submission.
  • The protocol texts. The agent reads the BIRD-Interact ADK's instruction, phase 1, follow-up and debug messages and the tool replies exactly (c_interact.py); an unknown text fails the activation with 422. It drops the database name Auto Ontology puts before each table, as auto-ontology-eval does.
  • Model calls. The interactive mode also calls Auto Ontology's fast model, on its own Model Server (fast_model_server, fast_model; a c-Interact seed is refused without it). Before importing Auto Ontology, the agent makes every chat client it builds (llm_invoke._build_client) and the interactive mode's thread pool send through the agent's transport, so each call takes the turn's rollout route.
  • Pairing. benchmarks/bird_interact/auto_ontology.yaml puts the agent in simple_agent's place on bird_interact_c_interact, with the fast model's Model Server and auto-ontology-eval's BIRD-Interact settings (numeric type alignment, its feature flags).

This replaces the earlier version of this PR, which wrapped Auto Ontology's pipeline from before ReAct (dd78d06), and #5648 (closed), whose patches the agent's own transport replaces.

Why

To get Auto Ontology's BIRD-Interact numbers through Gym, with its model calls recorded per rollout, on the same agent and Auto Ontology revision as BIRD dev. Tracking: GYMINT-753.

Validation

Check Result
pytest responses_api_agents/auto_ontology_agent/tests (component venv) 66 passed: #6271's tests, plus the ADK texts, c-Interact seed refusals, turns that ask and submit across phases, debug turns, the step bound, a failed tool call, a first turn that is not c-Interact, the knowledge children, the fast model's Model Server, and checks against Auto Ontology at the pinned commit (every chat client and the interactive thread pool send through the agent's HTTP client; the interactive mode's calls and parameters exist)
gym env resolve of benchmarks/bird_interact/auto_ontology.yaml resolves: bird_interact_c_interact drives auto_ontology_agent, with auto_ontology_fast_model and the BIRD-Interact settings
pre-commit run --files on the changed files passed

Rollout evidence

None yet, so this stays a draft. A run needs Auto Ontology's catalog with BIRD-Interact Lite's databases ingested and compiled, and the ground truth (GYMINT-592).

@ffrujeri ffrujeri added feature New capabilities, enhancements, or enablement work area:agent Agent harnesses and Responses API agent behavior labels Nov 4, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ffrujeri
ffrujeri added this pull request to stack #5470 November 4, 2026 21:47
@ffrujeri

ffrujeri commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test edb2ef9

@ffrujeri

ffrujeri commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 2bd2cdf

@ffrujeri

ffrujeri commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a7a10b4

@ffrujeri

ffrujeri commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test b22020d

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test cd14901

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test cf9145c

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test a1d5ca2

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 6696621

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 21b8d8f

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 93aa965

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test be49cd4

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test bb857cf

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 29af324

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 5cff671

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test a8def45

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 8249854

ffrujeri and others added 2 commits November 17, 2026 01:05
…t Server, on BIRD dev

Auto Ontology's main answers a question with one ReAct episode
(react.loop.run_episode): its model searches Auto Ontology's catalog, runs SQL
and submits a query. The agent calls run_episode as Auto Ontology's own ReAct
step does, with auto-ontology-eval's settings for a graded benchmark, and
answers with the submitted query in a fenced sql block.

- The task (question, evidence, database) comes in the seed's agent context.
  birdbench's prepare.py writes it with +prepare_script_args.agent_context=true,
  to its own file, and benchmarks/birdbench/auto_ontology.yaml pairs the agent
  with bird_sql through single_agent_turn_legacy.
- The episode's model is Auto Ontology's reasoning client on the policy's Model
  Server. Its calls go through Gym's ServerClient on the activation's rollout
  route, with the invocation ID, and report their usage (model_calls.py).
- Auto Ontology is pinned to its main (a630ebd) plus the commit of
  NVIDIA/auto-ontology#543 that accepts the openai version Gym pins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
Auto Ontology's interactive mode advances a session one action at a time:
ask the user, or submit SQL, which it writes with its ReAct agent. A session
seeded with continuation and a direct HTTP grant for the episode's ask_user
and submit_sql tools is a c-Interact session: the bird_interact Environment
Server activates it once for each turn, and the agent steps Auto Ontology
until it submits, running each action as an episode tool. It reads the
BIRD-Interact ADK's texts exactly (c_interact.py).

- The interactive mode's helper calls run on Auto Ontology's fast model, on
  its own Model Server (fast_model_server, fast_model). Every chat client
  Auto Ontology builds, and the interactive mode's thread pool, send through
  the agent's transport on the turn's rollout route.
- benchmarks/bird_interact/auto_ontology.yaml pairs the agent with c-Interact,
  with auto-ontology-eval's BIRD-Interact settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test ee889a9

@ffrujeri

Copy link
Copy Markdown
Contributor Author

Closing: the Auto Ontology Agent Server, its c-Interact mode included, moves to NVIDIA/auto-ontology-eval, next to the ingestion code and annotations that build Auto Ontology's catalog. There it runs Auto Ontology in a sandbox per episode, from an image the benchmark setup builds with the catalog. It pairs with this repository's bird_interact Environment Server (#5409 and up).

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

Labels

area:agent Agent harnesses and Responses API agent behavior feature New capabilities, enhancements, or enablement work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant