Skip to main content

Interface: CompiledStrategy

Defined in: packages/agentos/src/api/types.ts:1643

Internal

Compiled strategy interface used internally by the agency orchestrator.

Methods​

execute()​

execute(prompt, opts?): Promise<unknown>

Defined in: packages/agentos/src/api/types.ts:1650

Execute the compiled strategy and return the aggregated result.

Parameters​

prompt​

string

User prompt.

opts?​

Record<string, unknown>

Optional per-call overrides.

Returns​

Promise<unknown>


stream()​

stream(prompt, opts?): CompiledStrategyStreamResult

Defined in: packages/agentos/src/api/types.ts:1659

Stream the compiled strategy execution.

Parameters​

prompt​

string

User prompt.

opts?​

Record<string, unknown>

Optional per-call overrides.

Returns​

CompiledStrategyStreamResult

The internal strategy stream surface consumed by the outer agency() wrapper.