Chatterbot: Session and ResponseQueue

Created on 9 Aug 2017  路  3Comments  路  Source: gunthercox/ChatterBot

I'm reading about ResponseQueue and Session docs, but I am wondering that how chatterbot works when ResponseQueue is full (maxsize=10). Chatterbot will create a new Session or something i don't know.
Please help me to explain this. Thanks.

documentation

Most helpful comment

@hochochoc recently ResponseQueue concept has been removed https://github.com/gunthercox/ChatterBot/commit/e7a1d9c42ac0b3e0f03c585f43852756ad5705d7 from chatterbot.

I think documentation is pending will update soon.

I am wondering that how chatterbot works when ResponseQueue is full (maxsize=10).

It won't create another session, it will pop top element from the list.

if len(self.queue) == self.maxsize:
    # Remove an element from the top of the list
    self.queue.pop(0)

All 3 comments

@hochochoc recently ResponseQueue concept has been removed https://github.com/gunthercox/ChatterBot/commit/e7a1d9c42ac0b3e0f03c585f43852756ad5705d7 from chatterbot.

I think documentation is pending will update soon.

I am wondering that how chatterbot works when ResponseQueue is full (maxsize=10).

It won't create another session, it will pop top element from the list.

if len(self.queue) == self.maxsize:
    # Remove an element from the top of the list
    self.queue.pop(0)

Can this be closed? The ResponseQueue is no longer used.

yes i think so, @hochochoc please feel free reopen if you have further updates

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gunthercox picture gunthercox  路  3Comments

yuvalBor picture yuvalBor  路  3Comments

decode007 picture decode007  路  3Comments

vkosuri picture vkosuri  路  4Comments

juanpialbano picture juanpialbano  路  4Comments