api_routes
api_routes
¶
Extended API routes for agents, workflows, memory, traces, etc.
Functions¶
list_agents
async
¶
List available agent types and running agents.
Source code in src/openjarvis/server/api_routes.py
create_agent
async
¶
Spawn a new agent.
Source code in src/openjarvis/server/api_routes.py
kill_agent
async
¶
Kill a running agent.
Source code in src/openjarvis/server/api_routes.py
message_agent
async
¶
Send a message to a running agent.
Source code in src/openjarvis/server/api_routes.py
memory_store
async
¶
Store content in memory.
Source code in src/openjarvis/server/api_routes.py
memory_search
async
¶
Search memory for relevant content.
Source code in src/openjarvis/server/api_routes.py
memory_stats
async
¶
Get memory backend statistics.
Source code in src/openjarvis/server/api_routes.py
memory_config
async
¶
Return current memory configuration.
Source code in src/openjarvis/server/api_routes.py
memory_index
async
¶
Index files from a path into memory.
Source code in src/openjarvis/server/api_routes.py
list_traces
async
¶
List recent traces.
Source code in src/openjarvis/server/api_routes.py
get_trace
async
¶
Get a specific trace by ID.
Source code in src/openjarvis/server/api_routes.py
telemetry_stats
async
¶
Get aggregated telemetry statistics.
Source code in src/openjarvis/server/api_routes.py
telemetry_energy
async
¶
Get energy monitoring data.
Source code in src/openjarvis/server/api_routes.py
list_skills
async
¶
List installed skills.
Source code in src/openjarvis/server/api_routes.py
install_skill
async
¶
Install a skill (placeholder).
remove_skill
async
¶
Remove a skill (placeholder).
Source code in src/openjarvis/server/api_routes.py
list_sessions
async
¶
List active sessions.
Source code in src/openjarvis/server/api_routes.py
get_session
async
¶
Get a specific session.
Source code in src/openjarvis/server/api_routes.py
get_budget
async
¶
set_budget_limits
async
¶
Update budget limits.
Source code in src/openjarvis/server/api_routes.py
prometheus_metrics
async
¶
Prometheus-compatible metrics endpoint.
Source code in src/openjarvis/server/api_routes.py
websocket_chat_stream
async
¶
Stream chat responses over a WebSocket connection.
Accepts JSON messages of the form::
{"message": "...", "model": "...", "agent": "..."}
Sends back JSON chunks::
{"type": "chunk", "content": "..."} -- per-token streaming
{"type": "done", "content": "..."} -- final assembled response
{"type": "error", "detail": "..."} -- on failure
Source code in src/openjarvis/server/api_routes.py
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 | |
learning_stats
async
¶
Return learning system statistics across all sub-policies.
Source code in src/openjarvis/server/api_routes.py
learning_policy
async
¶
Return current routing policy configuration.
Source code in src/openjarvis/server/api_routes.py
transcribe_speech
async
¶
Transcribe uploaded audio to text.
Source code in src/openjarvis/server/api_routes.py
speech_health
async
¶
Check if a speech backend is available.
Source code in src/openjarvis/server/api_routes.py
submit_feedback
async
¶
Submit feedback for a trace.
Source code in src/openjarvis/server/api_routes.py
feedback_stats
async
¶
list_optimize_runs
async
¶
List optimization runs.
Source code in src/openjarvis/server/api_routes.py
get_optimize_run
async
¶
Get optimization run details.
Source code in src/openjarvis/server/api_routes.py
start_optimize_run
async
¶
include_all_routes
¶
Include all extended API routers in a FastAPI app.