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
¶
Store content in memory.
Source code in src/openjarvis/server/api_routes.py
memory_search
¶
Search memory for relevant content.
Source code in src/openjarvis/server/api_routes.py
memory_stats
¶
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
¶
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
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 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 | |
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.