API

AgentCommand

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/commands list Available chat commands

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

agent_commands, err := client.AgentCommand(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_commands)

Lua

Construct client as shown in the Lua setup, then call the operations:

local agent_commands, err = client:AgentCommand():list({ agent_id = "example", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$agent_commands = $client->AgentCommand()->list(["agent_id" => "example", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

agent_commands = client.AgentCommand().list({"agent_id": "example", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

agent_commands = client.AgentCommand.list({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const agent_commands = await client.AgentCommand().list({ agent_id: "example", organization_id: "example" })

Fields

Field Type Required Description
description string Yes Description
display_name string Yes Display Name
name string Yes Name
skill_model_visible boolean Yes Skill Model Visible
source string Yes Source

list

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/commands

Operation ID: spark_commands_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
conversation_id query string No

Responses

200: Available chat commands

application/json

Property Type Required Description
commands array of object Yes
commands[].description string Yes
commands[].display_name string Yes
commands[].name string Yes
commands[].skill_model_visible boolean Yes
commands[].source enum: native, skill, plugin Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway