Skip to content

feat: add OGX integration with agentic loop and state hydration#34

Draft
franciscojavierarceo wants to merge 1 commit into
mainfrom
feat/axum-ogx-integration-v2
Draft

feat: add OGX integration with agentic loop and state hydration#34
franciscojavierarceo wants to merge 1 commit into
mainfrom
feat/axum-ogx-integration-v2

Conversation

@franciscojavierarceo
Copy link
Copy Markdown
Collaborator

Summary

  • Adds trait-based store backend (ResponseStore, VectorSearch) to agentic-core with OGX as first implementation
  • Implements state hydration via previous_response_id — fetches conversation history from OGX and prepends to input
  • Implements agentic loop for file_search tool — calls vLLM, executes vector store searches via OGX, feeds results back until no more tool calls or max iterations
  • Adds Responses API types (ResponseRequest, ResponseBody, OutputItem, etc.) to agentic-core
  • Extends agentic-server CLI with --ogx-base-url and --max-iterations flags
  • Adds /health endpoint
  • 14 new integration/unit tests (proxy, agentic loop, state hydration)
  • CI workflow for OGX integration tests via uv pip install ogx[sqlite-vec]
  • make integration-test target for local + CI usage

Test plan

  • cargo build — clean
  • cargo test — 39 tests pass (23 core + 2 CLI + 7 proxy + 4 agentic loop + 2 hydration + 1 integration skip)
  • cargo clippy --all-targets -- -D warnings — clean
  • cargo fmt -- --check — clean
  • make integration-test — works locally with OGX installed

🤖 Generated with Claude Code

…loop

Add OGx-backed state hydration and agentic loop to the three-crate
workspace:

agentic-core:
- ResponseStore and VectorSearch traits (store/mod.rs)
- OgxStore implementation hitting OGx REST APIs (store/ogx.rs)
- Framework-agnostic agentic loop with file_search tool execution
- State hydration via previous_response_id
- Serde types for the Responses API subset (types.rs)

agentic-server:
- Axum handler dispatches to agentic-core, converts AgenticResult to
  HTTP responses (streaming and non-streaming)
- CLI flags: --ogx-base-url, --max-iterations
- Integration test with real OGx (health + passthrough)
- Mock-based tests for proxy, state hydration, and agentic loop

CI:
- Integration test job that starts OGx and runs cargo test
- Clippy and cargo-test pre-commit hooks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
@franciscojavierarceo franciscojavierarceo force-pushed the feat/axum-ogx-integration-v2 branch from 48035cb to 84bb97f Compare May 28, 2026 17:22
@franciscojavierarceo franciscojavierarceo marked this pull request as draft May 28, 2026 18:53
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.

1 participant