Agent
src.worksheets.agent
Classes
Agent
Bases: BaseModel
Agent setting for GenieWorksheets
Source code in src/worksheets/agent.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 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 |
|
Attributes
botname
instance-attribute
botname: str
description
instance-attribute
description: str
prompt_dir
instance-attribute
prompt_dir: str
starting_prompt
instance-attribute
starting_prompt: str
args
instance-attribute
args: dict
api
instance-attribute
api: list
knowledge_base
instance-attribute
knowledge_base: SUQLKnowledgeBase
knowledge_parser
instance-attribute
knowledge_parser: BaseSUQLParser
Functions
load_from_gsheet
load_from_gsheet(gsheet_id: str)
Load the agent configuration from the google sheet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gsheet_id
|
str
|
The ID of the Google Sheet. |
required |
Returns:
Name | Type | Description |
---|---|---|
GenieRuntime |
An instance of GenieRuntime configured with the loaded data. |
Source code in src/worksheets/agent.py
35 36 37 38 39 40 41 42 43 44 45 46 47 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 |
|