Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/agent-server/src/agent_server/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
def main() -> None:
s = get_settings()
# uvicorn only configures its own loggers; add a root handler so the
# reference agents' logging (e.g. the assembled prompt in LLMAgent) shows.
# agents' logging (e.g. the HexGate policy decisions) shows.
logging.basicConfig(level=logging.INFO, format="%(levelname)s %(name)s: %(message)s")
uvicorn.run(app, host=s.host, port=s.port)

Expand Down
51 changes: 3 additions & 48 deletions demo/agent-server/src/agent_server/actions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Reference widget actions (CONTRACT.md §5b) for the Orbit + DevOps workspaces.
"""Reference widget actions (CONTRACT.md §5b) for the DevOps + ITSM workspaces.

Backs the `data_source` + `action` + `refresh` mechanism: an action returns a
single `{result}` and never pushes to the UI; display widgets re-pull their
Expand All @@ -11,51 +11,10 @@

from __future__ import annotations

import csv
import io
from typing import Any

from .agents import devops_state, itsm_db

# The "retrieved sources" the Orbit `sources` table displays.
_SOURCES: list[dict[str, Any]] = []

_SEED: list[dict[str, Any]] = [
{"title": "Retrieval-augmented generation: a survey", "url": "https://example.com/rag-survey", "score": 0.94},
{"title": "Vector index benchmarks (2026)", "url": "https://example.com/vector-bench", "score": 0.91},
{"title": "Chunking strategies that actually matter", "url": "https://example.com/chunking", "score": 0.88},
{"title": "Evaluating grounded answers", "url": "https://example.com/grounded-eval", "score": 0.83},
{"title": "Hybrid search: BM25 + embeddings", "url": "https://example.com/hybrid-search", "score": 0.79},
]


def _sources_csv() -> str:
buf = io.StringIO()
writer = csv.writer(buf)
writer.writerow(["Title", "URL", "Score"])
for s in _SOURCES:
writer.writerow([s["title"], s["url"], s["score"]])
return buf.getvalue()


def _list_sources(_args: dict[str, Any]) -> dict[str, Any]:
"""Data source for the `sources` table — return the rows as CSV."""
return {"csv": _sources_csv()}


def _seed_sources(_args: dict[str, Any]) -> dict[str, Any]:
"""Side-effect: populate a sample result set (a fake 'search')."""
_SOURCES.clear()
_SOURCES.extend(_SEED)
return {"count": len(_SOURCES)}


def _clear_sources(_args: dict[str, Any]) -> dict[str, Any]:
"""Side-effect: drop all sources."""
removed = len(_SOURCES)
_SOURCES.clear()
return {"removed": removed}

from .agents.tech_org.devops import devops_state
from .agents.tech_org.itsm import itsm_db

# ── DevOps service-state panel (CONTRACT §5b) ────────────────────────────────
# The env buttons call `select_env`; the two display widgets pull `service_summary`
Expand Down Expand Up @@ -97,10 +56,6 @@ def _change_table(_args: dict[str, Any]) -> dict[str, Any]:


_ACTIONS = {
# Orbit research workspace
"list_sources": _list_sources,
"seed_sources": _seed_sources,
"clear_sources": _clear_sources,
# DevOps service-state panel
"select_env": _select_env,
"service_summary": _service_summary,
Expand Down
104 changes: 0 additions & 104 deletions demo/agent-server/src/agent_server/agents/adk_llm.py

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

from agents import set_default_openai_key

from .. import protocol
from agent_server import protocol
from agent_server.frameworks.openai_agents import agent_input, to_native_event

from . import healthcare_agent
from .openai_agents import agent_input, to_native_event

logger = logging.getLogger("agent_server.healthcare")

Expand Down
131 changes: 0 additions & 131 deletions demo/agent-server/src/agent_server/agents/demos.py

This file was deleted.

53 changes: 0 additions & 53 deletions demo/agent-server/src/agent_server/agents/echo.py

This file was deleted.

Loading
Loading