Skip to main content
POST
Start a monitor

Parâmetros de caminho

sessionId
string<uuid>
obrigatório

The session's id.

Corpo

application/json

A request to run a watcher. Monitors started this way are recorded as the person's; the model starts its own through its tool.

name
string
obrigatório

The watcher's name. Bounded to what a URL path segment carries unchanged, because this same name is the address the request that stops the watcher is sent to.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
command
string
obrigatório
Required string length: 1 - 4096
filter
string
Maximum string length: 512

Resposta

The monitor, now running.

One long-running watcher a session is keeping beside its conversation.

name
string
obrigatório

Unique within its session; this is what stops it.

command
string
obrigatório

What runs, under the session's repository.

startedBy
enum<string>
obrigatório

Which hand reached the switch. Both may, and the registry treats them identically; this says which one it was, so the model knows before it stops something it did not start.

Opções disponíveis:
model,
user
startedAt
string<date-time>
obrigatório
filter
string

A regular expression keeping only the output lines that match it. Absent means every line.