Skip to content

Documentation / @agentick/core / SendInput

Interface: SendInput<P> ​

Defined in: core/src/app/types.ts:882

Input for sending messages to a session.

Extends the wire-safe SharedSendInput with local execution fields. Always uses messages array (no singular message form).

Example ​

typescript
session.send({
  messages: [{ role: "user", content: [{ type: "text", text: "Hello!" }] }],
  maxTicks: 5,
});

Extends ​

Extended by ​

Type Parameters ​

P ​

P = { }

Properties ​

ephemeral? ​

optional ephemeral: EphemeralInput[]

Defined in: shared/src/protocol.ts:153

Ephemeral content (appended to compiled ephemeral)

Inherited from ​

SendInput.ephemeral


grounding? ​

optional grounding: GroundingInput[]

Defined in: shared/src/protocol.ts:149

Grounding context (ephemeral with _grounding metadata)

Inherited from ​

SendInput.grounding


maxTicks? ​

optional maxTicks: number

Defined in: core/src/app/types.ts:884

Override maxTicks for this execution


messages? ​

optional messages: Message[]

Defined in: shared/src/protocol.ts:141

Messages to deliver

Inherited from ​

SendInput.messages


metadata? ​

optional metadata: Record<string, unknown>

Defined in: shared/src/protocol.ts:145

Metadata attached to messages

Inherited from ​

SendInput.metadata


props? ​

optional props: P

Defined in: shared/src/protocol.ts:143

Component props to update

Inherited from ​

SendInput.props


sections? ​

optional sections: SectionInput[]

Defined in: shared/src/protocol.ts:151

Named sections (JSX wins on ID collision)

Inherited from ​

SendInput.sections


signal? ​

optional signal: AbortSignal

Defined in: core/src/app/types.ts:886

Per-execution abort signal (not serializable — local only)


system? ​

optional system: string[]

Defined in: shared/src/protocol.ts:147

Additional system instructions (appended to compiled systemEntries)

Inherited from ​

SendInput.system


tools? ​

optional tools: ExecutableTool<(input, ctx?) => ContentBlock[] | Promise<ContentBlock[]>>[]

Defined in: core/src/app/types.ts:891

Additional tools for this execution. Merged with session and app tools (execution tools take priority on name conflict).

Released under the ISC License.