Output
@daydreamsai/core / Output
Type Alias: Output<Schema, Response, TContext, TAgent>
Output<
Schema,Response,TContext,TAgent> =object
Defined in: packages/core/src/types.ts:272
Type Parameters
Schema
Schema extends OutputSchema = OutputSchema
Response
Response extends OutputRefResponse = OutputRefResponse
TContext
TContext extends AnyContext = AnyContext
TAgent
TAgent extends AnyAgent = AnyAgent
Properties
attributes?
optionalattributes:OutputSchema
Defined in: packages/core/src/types.ts:283
context?
optionalcontext:TContext
Defined in: packages/core/src/types.ts:284
description?
optionaldescription:string
Defined in: packages/core/src/types.ts:279
enabled()?
optionalenabled: (ctx) =>boolean
Defined in: packages/core/src/types.ts:286
Parameters
ctx
ContextState<TContext>
Returns
boolean
examples?
optionalexamples:string[]
Defined in: packages/core/src/types.ts:296
format()?
optionalformat: (res) =>string|string[] |XMLElement
Defined in: packages/core/src/types.ts:294
Parameters
res
OutputRef<Response["data"]>
Returns
string | string[] | XMLElement
handler()?
optionalhandler: (data,ctx,agent) =>MaybePromise<Response|Response[]>
Defined in: packages/core/src/types.ts:287
Parameters
data
InferOutputSchemaParams<Schema>
ctx
ContextState<TContext> & object
agent
TAgent
Returns
MaybePromise<Response | Response[]>
install()?
optionalinstall: (agent) =>MaybePromise<void>
Defined in: packages/core/src/types.ts:285
Parameters
agent
TAgent
Returns
MaybePromise<void>
instructions?
optionalinstructions:string
Defined in: packages/core/src/types.ts:280
name
name:
string
Defined in: packages/core/src/types.ts:278
required?
optionalrequired:boolean
Defined in: packages/core/src/types.ts:281
schema?
optionalschema:Schema
Defined in: packages/core/src/types.ts:282