POST
/
v1
/
agent
/
lookup
!pip install vlmrun

from vlmrun.client import VLMRun
from vlmrun.client.types import AgentResponse

client = VLMRun(base_url="https://agent.vlm.run/v1", api_key="<VLMRUN_API_KEY>")

# Lookup by agent id
response: AgentResponse = client.agent.get(id="<agent-id>")

# Lookup by agent name and version
response: AgentResponse = client.agent.get(name="<agent-name>:<agent-version>")

# Lookup by agent name alone (latest version will be returned)
response: AgentResponse = client.agent.get(name="<agent-name>")

# Lookup by agent prompt alone (latest version will be returned)
response: AgentResponse = client.agent.get(prompt="<prompt>")
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "prompt": "<string>",
  "json_schema": {},
  "json_sample": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "status": "pending"
}
!pip install vlmrun

from vlmrun.client import VLMRun
from vlmrun.client.types import AgentResponse

client = VLMRun(base_url="https://agent.vlm.run/v1", api_key="<VLMRUN_API_KEY>")

# Lookup by agent id
response: AgentResponse = client.agent.get(id="<agent-id>")

# Lookup by agent name and version
response: AgentResponse = client.agent.get(name="<agent-name>:<agent-version>")

# Lookup by agent name alone (latest version will be returned)
response: AgentResponse = client.agent.get(name="<agent-name>")

# Lookup by agent prompt alone (latest version will be returned)
response: AgentResponse = client.agent.get(prompt="<prompt>")

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to get agent info.

Response

Successful Response

Response to the agent creation request.