Skip to content

Documentation / @agentick/core / SendResult

Interface: SendResult ​

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

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:981

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:996

Raw compiled output (for advanced use cases).


response ​

response: string

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

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


stopReason? ​

optional stopReason: string

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

Reason execution stopped.


usage ​

usage: UsageStats

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

Token usage and execution statistics.

Released under the ISC License.