Skip to content

Documentation / @agentick/core / SendResult

Interface: SendResult ​

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

Result from session.render() with structured outputs.

This is the primary output interface. Props go in, SendResult comes out.

Example ​

typescript
const session = app.session();
const result = await session.render({ messages: [...], context: 'Be concise' });

console.log(result.response);        // Model's text response
console.log(result.outputs.decide);  // Structured data from OUTPUT tool

Properties ​

outputs ​

outputs: Record<string, unknown>

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

Structured outputs from OUTPUT-type tools, keyed by tool name. When a tool has executionType="OUTPUT", its data appears here instead of being sent back to the model as a tool_result.


raw ​

raw: COMInput

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

Raw compiled output (for advanced use cases).


response ​

response: string

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

The model's text response (concatenated from all assistant messages).


stopReason? ​

optional stopReason: string

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

Reason execution stopped.


usage ​

usage: UsageStats

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

Token usage and execution statistics.

Released under the ISC License.