Skip to content

fix: add deliverAs:'followUp' to sendUserMessage calls to prevent 'Agent is already processing' error#15

Open
gundemirbas wants to merge 1 commit into
badlogic:mainfrom
gundemirbas:fix/send-user-message-streaming-error
Open

fix: add deliverAs:'followUp' to sendUserMessage calls to prevent 'Agent is already processing' error#15
gundemirbas wants to merge 1 commit into
badlogic:mainfrom
gundemirbas:fix/send-user-message-streaming-error

Conversation

@gundemirbas

Copy link
Copy Markdown

When pi is already processing (streaming) and the Telegram extension calls
sendUserMessage without a streamingBehavior option, the runtime throws:
'Agent is already processing. Specify streamingBehavior...'

Adding deliverAs:'followUp' queues the message when the agent is busy
instead of throwing. When the agent is idle the option is ignored and
the message is processed immediately.

Fixes the 'Extension error: Agent is already processing' error
reported by Telegram users.

…ent is already processing' error

When pi is already processing (streaming) and the Telegram extension calls
sendUserMessage without a streamingBehavior option, the runtime throws:
  'Agent is already processing. Specify streamingBehavior...'

Adding deliverAs:'followUp' queues the message when the agent is busy
instead of throwing. When the agent is idle the option is ignored and
the message is processed immediately.

Fixes the 'Extension <runtime> error: Agent is already processing' error
reported by Telegram users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant