Documentation / @agentick/connector / ConnectorBridge
Interface: ConnectorBridge ​
Defined in: connector/src/types.ts:129
Bridge provided by the framework to the platform adapter. The platform uses this to push inbound messages and receive delivery-ready output.
Methods ​
abort() ​
abort(
reason?):void
Defined in: connector/src/types.ts:145
Parameters ​
reason? ​
string
Returns ​
void
destroy() ​
destroy():
void
Defined in: connector/src/types.ts:146
Returns ​
void
onConfirmation() ​
onConfirmation(
handler): () =>void
Defined in: connector/src/types.ts:133
Parameters ​
handler ​
(request, respond) => void
Returns ​
():
void
Returns ​
void
onDeliver() ​
onDeliver(
handler): () =>void
Defined in: connector/src/types.ts:132
Parameters ​
handler ​
(output) => void | Promise<void>
Returns ​
():
void
Returns ​
void
onExecutionEnd() ​
onExecutionEnd(
handler): () =>void
Defined in: connector/src/types.ts:144
Register a handler called when an execution ends. Returns unsubscribe.
Parameters ​
handler ​
() => void
Returns ​
():
void
Returns ​
void
onExecutionStart() ​
onExecutionStart(
handler): () =>void
Defined in: connector/src/types.ts:142
Register a handler called when an execution starts. Returns unsubscribe.
Parameters ​
handler ​
() => void
Returns ​
():
void
Returns ​
void
reportStatus() ​
reportStatus(
status,error?):void
Defined in: connector/src/types.ts:140
Platform reports status changes to the framework.
Parameters ​
status ​
error? ​
Error
Returns ​
void
send() ​
send(
text,source?):void
Defined in: connector/src/types.ts:130
Parameters ​
text ​
string
source? ​
type ​
"local"
Returns ​
void
sendInput() ​
sendInput(
input):void
Defined in: connector/src/types.ts:131
Parameters ​
input ​
Returns ​
void