Commit bb3d417
committed
feat(api): add BaseAgentConfig, AgencyOptions, and extended result types
Introduces src/api/types.ts with the full Agency API type surface:
SecurityTier, MemoryType, AgencyStrategy, BaseAgentConfig, AgencyOptions,
AgencyStreamPart discriminated union, AgencyTraceEvent, AgentCallRecord,
ApprovalRequest/Decision, all sub-config interfaces, AgencyCallbacks,
CompiledStrategy, Agent/Agency interfaces, and AgencyConfigError.
Extends GenerateTextResult with agentCalls, trace, and parsed fields.
Adds 47-test suite in agency-types.test.ts covering class behaviour,
discriminated-union narrowing, literal unions, and structural shapes.1 parent ac600c4 commit bb3d417
3 files changed
Lines changed: 1367 additions & 0 deletions
0 commit comments