API

AgentTool

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/relay/tools list Authorized operator result

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_tools, err := client.AgentTool(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_tools)

Lua

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

local agent_tools, err = client:AgentTool():list({ agent_id = "example", organization_id = "example" })

PHP

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

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

Python

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

agent_tools = client.AgentTool().list({"agent_id": "example", "organization_id": "example"})

Ruby

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

agent_tools = client.AgentTool.list({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

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

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

Fields

Field Type Required Description
description string No Description
inputSchema object Yes Input Schema
name string Yes Name

list

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/relay/tools

Operation ID: spark_relay_tools_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Authorized operator result

application/json

Property Type Required Description
participant string Yes
requester_id string Yes
scope_key string Yes
tools array of object Yes
tools[].description string No
tools[].inputSchema object Yes
tools[].name string Yes
401: Authentication required
403: Current requester access is required
404: Agent or operator receipt unavailable
409: Request key belongs to different arguments
422: Invalid bounded request
503: Relay unavailable