!pip install vlmrun
from vlmrun.client import VLMRun
from vlmrun.client.types import AgentCreationResponse, AgentCreationConfig
# Initialize the client
client = VLMRun(base_url="https://agent.vlm.run/v1", api_key="<VLMRUN_API_KEY>")
# Create the agent using a prompt
response: AgentCreationResponse = client.agent.create(
config=AgentCreationConfig(prompt="Extract the invoice_id, date and amount from the invoice."),
)
{
"id": "<string>",
"name": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
!pip install vlmrun
from vlmrun.client import VLMRun
from vlmrun.client.types import AgentCreationResponse, AgentCreationConfig
# Initialize the client
client = VLMRun(base_url="https://agent.vlm.run/v1", api_key="<VLMRUN_API_KEY>")
# Create the agent using a prompt
response: AgentCreationResponse = client.agent.create(
config=AgentCreationConfig(prompt="Extract the invoice_id, date and amount from the invoice."),
)
{
"id": "<string>",
"name": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
!pip install vlmrun
from vlmrun.client import VLMRun
from vlmrun.client.types import AgentCreationResponse, AgentCreationConfig
# Initialize the client
client = VLMRun(base_url="https://agent.vlm.run/v1", api_key="<VLMRUN_API_KEY>")
# Create the agent using a prompt
response: AgentCreationResponse = client.agent.create(
config=AgentCreationConfig(prompt="Extract the invoice_id, date and amount from the invoice."),
)
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Request to create an agent.
Successful Response
Response to the agent creation request.