dag-core / Exports / IPromptBackendPort
Interface: IPromptBackendPort
Port interface for prompt-compatible backends. Method signatures derived from OpenAPI spec operations. Implemented by Robota DAG runtime adapter or external HTTP proxy.
Table of contents
Methods
Methods
submitPrompt
▸ submitPrompt(request): Promise<TResult<IPromptResponse, IDagError>>
Parameters
| Name | Type |
|---|---|
request | IPromptRequest |
Returns
Promise<TResult<IPromptResponse, IDagError>>
Defined in
interfaces/prompt-backend-port.ts:19
getQueue
▸ getQueue(): Promise<TResult<IQueueStatus, IDagError>>
Returns
Promise<TResult<IQueueStatus, IDagError>>
Defined in
interfaces/prompt-backend-port.ts:20
manageQueue
▸ manageQueue(action): Promise<TResult<void, IDagError>>
Parameters
| Name | Type |
|---|---|
action | IQueueAction |
Returns
Promise<TResult<void, IDagError>>
Defined in
interfaces/prompt-backend-port.ts:21
getHistory
▸ getHistory(promptId?): Promise<TResult<THistory, IDagError>>
Parameters
| Name | Type |
|---|---|
promptId? | string |
Returns
Promise<TResult<THistory, IDagError>>
Defined in
interfaces/prompt-backend-port.ts:22
getObjectInfo
▸ getObjectInfo(nodeType?): Promise<TResult<TObjectInfo, IDagError>>
Parameters
| Name | Type |
|---|---|
nodeType? | string |
Returns
Promise<TResult<TObjectInfo, IDagError>>
Defined in
interfaces/prompt-backend-port.ts:23
getSystemStats
▸ getSystemStats(): Promise<TResult<ISystemStats, IDagError>>
Returns
Promise<TResult<ISystemStats, IDagError>>