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.
Reports memory as unavailable (rather than falsely claiming
backend_type: sqlite) when the native openjarvis_rust extension is
missing, so the UI can show the real cause instead of a healthy-looking
config that backs a silent no-op (#502).
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
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 | |
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.