Skip to content

Assistant run

logger = logging.getLogger(__name__) module-attribute

NoInputError

Bases: FrontendError

OutOfDateError

Bases: FrontendError

ProvidesRunContextProtocol

Bases: Protocol

run_context() async

Async context manager.

the async is missing in the Protocol definition because of inner workings of Protocol. To implement, async must be included:

Examples:

``` class ExampleProvider: @asynccontextmanager async def run_context(self) -> AsyncContextManager: print("Opening context")

Yield

print("Closing context")

```

handle_resume_event(updatable, run_context_provider, thread_uid, conversation_id, additional_inputs, dependencies=None) async

handle_submit_event(updatable, run_context_provider, user_info, assistant_id, conversation_id, user_input, dependencies=None) async