Create an Agent Executor Job
Create an Agent Executor Job
pythonCopy codeimport agentorbit
agentorbit.api_key = "YOUR_API_KEY"
# Create an agent executor job and execute the agent
job = agentorbit.AgentExecutorJob.create(
agent_id="15d19ca3-26f1-4adb-9cea-3955b73d9b4e",
payload={"foo": "bar"},
)Returns:
An AgentExecutorJob object.
Usage:
By creating an agent executor job, the specified agent will execute. The payload parameter is optional and allows passing data to the agent. The agent can access this data via the request parameter:
pythonCopy codedef main(request, store):
print(request.payload["foo"]) # Outputs: "bar"window.__oai_logHTML?window.__oai_logHTML():window.__oai_SSR_HTML=window.__oai_SSR_HTML||Date.now();requestAnimationFrame((function(){window.__oai_logTTI?window.__oai_logTTI():window.__oai_SSR_TTI=window.__oai_SSR_TTI||Date.now()}))
O
Last updated