API Reference - FastAPI REST API#
src
#
intentional_fastapi
#
FastAPI REST API interface for Intentional.
__about__
#
Package descriptors for intentional-fastapi.
bot_interface
#
FastAPI REST API interface for Intentional.
FastAPIBotInterface
#
Bases: BotInterface
Bot that lets you use a FastAPI REST API to interact with the user.
Source code in plugins/intentional-fastapi/src/intentional_fastapi/bot_interface.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
handle_response_chunks(response, event)
async
#
Stream out text messages from the bot through a TextChunksIterator.
Source code in plugins/intentional-fastapi/src/intentional_fastapi/bot_interface.py
83 84 85 86 87 88 |
|
run()
async
#
Chooses the specific loop to use for this combination of bot and modality and kicks it off.
Source code in plugins/intentional-fastapi/src/intentional_fastapi/bot_interface.py
69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
ResponseChunksIterator
#
Async iterator that collects the response chunks from the bot and streams them out.
Source code in plugins/intentional-fastapi/src/intentional_fastapi/bot_interface.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|