Synopsis

runagent run [AGENT_ID] [OPTIONS]

Description

Execute a deployed agent with input data and receive the response.

Options

OptionDescriptionDefault
--input, -iJSON input dataRequired
--input-file, -fRead input from file-
--output, -oOutput file pathstdout
--streamEnable streaming outputfalse

Examples

Basic Usage

# Run with inline input
runagent run agent-123 --input '{"query": "Hello"}'

# Run with file input
runagent run agent-123 --input-file request.json

# Save output to file
runagent run agent-123 --input '{"query": "Test"}' --output result.json

Streaming

# Stream responses
runagent run agent-123 --input '{"query": "Tell me a story"}' --stream

Input Format

The input must be valid JSON:

{
  "query": "Your question here",
  "parameters": {
    "temperature": 0.7,
    "max_tokens": 150
  }
}

See Also