fix(agent): restore public send method
This commit is contained in:
@@ -37,6 +37,7 @@ function stubAgent(ctx: Context, id: string): { agent: Agent; session: Session }
|
||||
inbox: new Inbox(session),
|
||||
ctx: new Context(),
|
||||
get status() { return status },
|
||||
send: () => {},
|
||||
followup: () => {},
|
||||
steer: () => {},
|
||||
inject(input) { appendInjection(session, input) },
|
||||
|
||||
@@ -47,6 +47,7 @@ function stubAgentForSession(session: Session): StubAgent {
|
||||
inbox: new Inbox(session),
|
||||
ctx: new Context(),
|
||||
get status() { return status },
|
||||
send: () => {},
|
||||
followup: () => {},
|
||||
steer: () => {},
|
||||
inject(input) {
|
||||
|
||||
@@ -38,6 +38,7 @@ function liveAgent(ctx: Context, session: Session): Agent {
|
||||
inbox: new Inbox(session),
|
||||
ctx,
|
||||
get status() { return status },
|
||||
send: () => {},
|
||||
followup: () => {},
|
||||
steer: () => {},
|
||||
inject(input: UserMessage) {
|
||||
|
||||
@@ -32,6 +32,7 @@ function stubAgent(rawId: string, supplied?: Session): StubAgent {
|
||||
inbox: new Inbox(session),
|
||||
get status() { return status },
|
||||
ctx: new Context(),
|
||||
send: () => {},
|
||||
followup: () => {},
|
||||
steer: () => {},
|
||||
inject(input) {
|
||||
|
||||
Reference in New Issue
Block a user