!pip install vlmrun
from vlmrun.client import VLMRun
from vlmrun.client.types import AgentExecutionResponse
client = VLMRun(api_key="<VLMRUN_API_KEY>")
response: AgentExecutionResponse = client.executions.list(skip=0, limit=10)
import { VlmRun } from "vlmrun";
const client = new VlmRun({
baseURL: "https://api.vlm.run/v1",
apiKey: "<VLMRUN_API_KEY>"
});
const response = await client.executions.list({ skip: 0, limit: 10 });
console.log(response);
[
{
"name": "<string>",
"usage": {
"elements_processed": 123,
"element_type": "image",
"credits_used": 123,
"steps": 123,
"message": "<string>",
"duration_seconds": 0,
"service_tier": "<string>",
"mode_multiplier": 123,
"standard_cost_dollars": 123,
"cost_dollars": 123,
"savings_dollars": 123
},
"id": "<string>",
"response": "<unknown>",
"execution_mode": "agent",
"status": "pending",
"fallback": false,
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Agents
List Executions
List all agent executions for the user organization with pagination.
GET
/
v1
/
agent
/
executions
!pip install vlmrun
from vlmrun.client import VLMRun
from vlmrun.client.types import AgentExecutionResponse
client = VLMRun(api_key="<VLMRUN_API_KEY>")
response: AgentExecutionResponse = client.executions.list(skip=0, limit=10)
import { VlmRun } from "vlmrun";
const client = new VlmRun({
baseURL: "https://api.vlm.run/v1",
apiKey: "<VLMRUN_API_KEY>"
});
const response = await client.executions.list({ skip: 0, limit: 10 });
console.log(response);
[
{
"name": "<string>",
"usage": {
"elements_processed": 123,
"element_type": "image",
"credits_used": 123,
"steps": 123,
"message": "<string>",
"duration_seconds": 0,
"service_tier": "<string>",
"mode_multiplier": 123,
"standard_cost_dollars": 123,
"cost_dollars": 123,
"savings_dollars": 123
},
"id": "<string>",
"response": "<unknown>",
"execution_mode": "agent",
"status": "pending",
"fallback": false,
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}!pip install vlmrun
from vlmrun.client import VLMRun
from vlmrun.client.types import AgentExecutionResponse
client = VLMRun(api_key="<VLMRUN_API_KEY>")
response: AgentExecutionResponse = client.executions.list(skip=0, limit=10)
import { VlmRun } from "vlmrun";
const client = new VlmRun({
baseURL: "https://api.vlm.run/v1",
apiKey: "<VLMRUN_API_KEY>"
});
const response = await client.executions.list({ skip: 0, limit: 10 });
console.log(response);
Authorizations
Query Parameters
Response
Successful Response
The usage metrics for the request.
Hide child attributes
Hide child attributes