Agent - API
Agent Run
POST
Description
Run the Laminar agent with the given prompt. The response can be streamed or returned as a single response.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The instructions to be used for the agent run.
Laminar OpenTelemetry span context. Useful to embed agent spans in a larger trace.
LLM provider. Defaults to anthropic
.
Available options:
anthropic
, bedrock
LLM model name. Must match the provider API model name, e.g. 'claude-3-7-sonnet-latest'.
If true, the response will be streamed including the intermediate 'thinking' steps. If false, the response will be returned as a single message. Defaults to false.
The thinking parameter that is sent to the underlying LLM. Defaults to true.
Response
200
application/json
Agent run result
The result of the agent run.