Engine API
Get Topology Graph
Returns the full agent-tool topology graph
GET
/
api
/
v1
/
topology
/
graph
Get Topology Graph
curl --request GET \
--url http://localhost:8000/api/v1/topology/graphimport requests
url = "http://localhost:8000/api/v1/topology/graph"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/api/v1/topology/graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/api/v1/topology/graph",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/api/v1/topology/graph"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/topology/graph")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/api/v1/topology/graph")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"nodes": [
{
"id": "researcher-agent",
"type": "agent",
"label": "Researcher",
"metadata": {
"framework": "langchain",
"role": "Research and analysis",
"model": "gpt-4o",
"tools_observed": ["search_documents", "fetch_url"],
"maturity": "MATURE"
}
},
{
"id": "tool:search_documents",
"type": "tool",
"label": "search_documents",
"metadata": {
"category": "memory_read"
}
}
],
"edges": [
{
"id": "abc123",
"source": "researcher-agent",
"target": "tool:search_documents",
"type": "agent_to_tool",
"call_count": 42,
"tool_category": "memory_read"
}
]
}
Returns all agent nodes, tool nodes, and their edges. Used by the dashboard’s Topology page.
Query Parameters
Filter the graph to a single service name.
Response
Array of edge objects.
Show child attributes
Show child attributes
Edge identifier
Source node ID
Target node ID
agent_to_agent or agent_to_toolFor agent-to-agent:
function_call or team_memberTimes this connection was observed
For tool edges: total call count
LOW, MEDIUM, or HIGH{
"nodes": [
{
"id": "researcher-agent",
"type": "agent",
"label": "Researcher",
"metadata": {
"framework": "langchain",
"role": "Research and analysis",
"model": "gpt-4o",
"tools_observed": ["search_documents", "fetch_url"],
"maturity": "MATURE"
}
},
{
"id": "tool:search_documents",
"type": "tool",
"label": "search_documents",
"metadata": {
"category": "memory_read"
}
}
],
"edges": [
{
"id": "abc123",
"source": "researcher-agent",
"target": "tool:search_documents",
"type": "agent_to_tool",
"call_count": 42,
"tool_category": "memory_read"
}
]
}
⌘I
Get Topology Graph
curl --request GET \
--url http://localhost:8000/api/v1/topology/graphimport requests
url = "http://localhost:8000/api/v1/topology/graph"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/api/v1/topology/graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/api/v1/topology/graph",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/api/v1/topology/graph"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/topology/graph")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/api/v1/topology/graph")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"nodes": [
{
"id": "researcher-agent",
"type": "agent",
"label": "Researcher",
"metadata": {
"framework": "langchain",
"role": "Research and analysis",
"model": "gpt-4o",
"tools_observed": ["search_documents", "fetch_url"],
"maturity": "MATURE"
}
},
{
"id": "tool:search_documents",
"type": "tool",
"label": "search_documents",
"metadata": {
"category": "memory_read"
}
}
],
"edges": [
{
"id": "abc123",
"source": "researcher-agent",
"target": "tool:search_documents",
"type": "agent_to_tool",
"call_count": 42,
"tool_category": "memory_read"
}
]
}

