• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

joagonzalez / cyclops-devops-agent / 15571014953

10 Jun 2025 09:48PM UTC coverage: 75.613% (-10.8%) from 86.441%
15571014953

push

github

web-flow
Merge pull request #49 from joagonzalez/rc-v0.1.0

Rc v0.1.0

110 of 230 new or added lines in 11 files covered. (47.83%)

617 of 816 relevant lines covered (75.61%)

0.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

56.25
/src/api/cyclops.py
1
from typing import Any, Dict
1✔
2
from pydantic import BaseModel
1✔
3
from src.cyclops_graph import cyclops
1✔
4
from fastapi import APIRouter, status
1✔
5

6
router = APIRouter()
1✔
7

8
# Request model
9
class AgentQueryRequest(BaseModel):
1✔
10
    user_prompt: str
1✔
11

12
# Response model (optional, here we just return state)
13
@router.post("/agent/query", tags=["Agent"], status_code=status.HTTP_200_OK)
1✔
14
async def run_agent_query(request: AgentQueryRequest) -> Dict[str, Any]:
1✔
15
    """
16
    Runs the Cyclops agent on the given user prompt.
17

18
    Returns the final state of the agent (including final_summary).
19
    """
NEW
20
    input_state = {"user_prompt": request.user_prompt}
×
21

NEW
22
    print(f"\n Running Cyclops agent via API for user_prompt: {request.user_prompt}")
×
23

NEW
24
    final_state = await cyclops.ainvoke(input_state)
×
25

NEW
26
    print("\n Final state (via API):")
×
NEW
27
    for key, value in final_state.items():
×
NEW
28
        print(f"{key}: {value}")
×
29

NEW
30
    return final_state
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc