From 25c6bd92f3b93be92e468f941e97426cbbe6e1b3 Mon Sep 17 00:00:00 2001 From: <> Date: Thu, 2 Nov 2023 15:58:50 +0000 Subject: [PATCH] Deployed cf5ee8a with MkDocs version: 1.5.3 --- .nojekyll | 0 404.html | 532 ++ agents/index.html | 2380 ++++++ assets/_mkdocstrings.css | 64 + assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.aecac24b.min.js | 29 + assets/javascripts/bundle.aecac24b.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.f886a092.min.js | 42 + .../workers/search.f886a092.min.js.map | 7 + assets/stylesheets/main.4b4a2bd9.min.css | 1 + assets/stylesheets/main.4b4a2bd9.min.css.map | 1 + assets/stylesheets/palette.356b1318.min.css | 1 + .../stylesheets/palette.356b1318.min.css.map | 1 + datasets/index.html | 1818 +++++ environments/index.html | 2745 +++++++ img/diagram.png | Bin 0 -> 142044 bytes img/executing-agents-skill.png | Bin 0 -> 104331 bytes img/logo-dark-mode.png | Bin 0 -> 8487 bytes img/logo.png | Bin 0 -> 154625 bytes img/training-agents-skill.png | Bin 0 -> 95228 bytes "img/\342\234\205 executing-agents-skill.png" | Bin 0 -> 104332 bytes "img/\342\234\205 training-agents-skill.png" | Bin 0 -> 96687 bytes index.html | 741 ++ memories/index.html | 1070 +++ objects.inv | Bin 0 -> 1138 bytes runtimes/index.html | 2736 +++++++ search/search_index.json | 1 + sitemap.xml | 3 + sitemap.xml.gz | Bin 0 -> 127 bytes skills/index.html | 5806 ++++++++++++++ utils/index.html | 634 ++ 65 files changed, 25820 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 agents/index.html create mode 100644 assets/_mkdocstrings.css create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.aecac24b.min.js create mode 100644 assets/javascripts/bundle.aecac24b.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.f886a092.min.js create mode 100644 assets/javascripts/workers/search.f886a092.min.js.map create mode 100644 assets/stylesheets/main.4b4a2bd9.min.css create mode 100644 assets/stylesheets/main.4b4a2bd9.min.css.map create mode 100644 assets/stylesheets/palette.356b1318.min.css create mode 100644 assets/stylesheets/palette.356b1318.min.css.map create mode 100644 datasets/index.html create mode 100644 environments/index.html create mode 100644 img/diagram.png create mode 100644 img/executing-agents-skill.png create mode 100644 img/logo-dark-mode.png create mode 100644 img/logo.png create mode 100644 img/training-agents-skill.png create mode 100644 "img/\342\234\205 executing-agents-skill.png" create mode 100644 "img/\342\234\205 training-agents-skill.png" create mode 100644 index.html create mode 100644 memories/index.html create mode 100644 objects.inv create mode 100644 runtimes/index.html create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz create mode 100644 skills/index.html create mode 100644 utils/index.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..e45147d --- /dev/null +++ b/404.html @@ -0,0 +1,532 @@ + + + +
+ + + + + + + + + + + + + + +Agent
+
+
+
+ Bases: BaseModel
, ABC
Represents a customizable agent that can interact with environments, +employ skills, and leverage memory and runtimes.
+ + + +Attributes:
+Name | +Type | +Description | +
---|---|---|
environment |
+
+ Union[Dataset, Environment]
+ |
+
+
+
+ The environment with which the agent interacts. + |
+
skills |
+
+ Union[SkillSet, BaseSkill, List[BaseSkill], Dict[str, BaseSkill]]
+ |
+
+
+
+ The skills possessed by the agent. + |
+
memory |
+
+ LongTermMemory
+ |
+
+
+
+ The agent's long-term memory. Defaults to None. + |
+
runtimes |
+
+ Dict[str, Runtime]
+ |
+
+
+
+ The runtimes available to the agent. Defaults to predefined runtimes. + |
+
default_runtime |
+
+ str
+ |
+
+
+
+ The default runtime used by the agent. Defaults to 'openai'. + |
+
teacher_runtimes |
+
+ Dict[str, Runtime]
+ |
+
+
+
+ The runtimes available to the agent's teacher. Defaults to predefined runtimes. + |
+
default_teacher_runtime |
+
+ str
+ |
+
+
+
+ The default runtime used by the agent's teacher. Defaults to 'openai-gpt3'. + |
+
adala/agents/base.py
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 + 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 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181 +182 +183 +184 +185 +186 +187 +188 +189 +190 +191 +192 +193 +194 +195 +196 +197 +198 +199 +200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226 +227 +228 +229 +230 +231 +232 +233 +234 +235 +236 +237 +238 +239 +240 +241 +242 +243 +244 +245 +246 +247 +248 +249 +250 +251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 +272 +273 |
|
__rich__()
+
+Returns a colorized and formatted representation of the Agent instance.
+ + + +Returns:
+Name | Type | +Description | +
---|---|---|
str |
+ str
+ |
+
+
+
+ A rich-formatted representation of the agent. + |
+
adala/agents/base.py
60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 |
|
environment_validator(v)
+
+Validates and possibly transforms the environment attribute.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
v |
+
+ Union[Dataset, Environment]
+ |
+
+
+
+ The environment value to validate. + |
+ + required + | +
Returns:
+Name | Type | +Description | +
---|---|---|
Environment |
+ Environment
+ |
+
+
+
+ The validated environment. + |
+
adala/agents/base.py
80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 |
|
get_runtime(runtime=None)
+
+Retrieves the specified runtime or the default runtime if none is specified.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
runtime |
+
+ str
+ |
+
+
+
+ The name of the runtime to retrieve. Defaults to None. + |
+
+ None
+ |
+
Returns:
+Name | Type | +Description | +
---|---|---|
Runtime |
+ Runtime
+ |
+
+
+
+ The requested runtime. + |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If the specified runtime is not found. + |
+
adala/agents/base.py
133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 |
|
get_teacher_runtime(runtime=None)
+
+Retrieves the specified teacher runtime or the default runtime if none is specified.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
runtime |
+
+ str
+ |
+
+
+
+ The name of the runtime to retrieve. Defaults to None. + |
+
+ None
+ |
+
Returns:
+Name | Type | +Description | +
---|---|---|
Runtime |
+ Runtime
+ |
+
+
+
+ The requested runtime. + |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If the specified runtime is not found. + |
+
adala/agents/base.py
153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 |
|
learn(learning_iterations=3, accuracy_threshold=0.9, update_memory=True, request_environment_feedback=True, runtime=None, teacher_runtime=None)
+
+Enables the agent to learn and improve its skills based on interactions with its environment.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
learning_iterations |
+
+ int
+ |
+
+
+
+ The number of iterations for learning. Defaults to 3. + |
+
+ 3
+ |
+
accuracy_threshold |
+
+ float
+ |
+
+
+
+ The desired accuracy threshold to reach. Defaults to 0.9. + |
+
+ 0.9
+ |
+
update_memory |
+
+ bool
+ |
+
+
+
+ Flag to determine if memory should be updated after learning. Defaults to True. + |
+
+ True
+ |
+
request_environment_feedback |
+
+ bool
+ |
+
+
+
+ Flag to determine if feedback should be requested from the environment. Defaults to True. + |
+
+ True
+ |
+
runtime |
+
+ str
+ |
+
+
+
+ The runtime to be used for the learning process. Defaults to None. + |
+
+ None
+ |
+
teacher_runtime |
+
+ str
+ |
+
+
+
+ The teacher runtime to be used for the learning process. Defaults to None. + |
+
+ None
+ |
+
Returns: + GroundTruthSignal: The ground truth signal.
+ +adala/agents/base.py
188 +189 +190 +191 +192 +193 +194 +195 +196 +197 +198 +199 +200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226 +227 +228 +229 +230 +231 +232 +233 +234 +235 +236 +237 +238 +239 +240 +241 +242 +243 +244 +245 +246 +247 +248 +249 +250 +251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 +272 +273 |
|
run(dataset, runtime=None)
+
+Runs the agent on the specified dataset.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
dataset |
+
+ Union[Dataset, InternalDataFrame]
+ |
+
+
+
+ The dataset to run the agent on. + |
+ + required + | +
runtime |
+
+ str
+ |
+
+
+
+ The name of the runtime to use. Defaults to None, use the default runtime. + |
+
+ None
+ |
+
Returns:
+Name | Type | +Description | +
---|---|---|
InternalDataFrame |
+ InternalDataFrame
+ |
+
+
+
+ The dataset with the agent's predictions. + |
+
adala/agents/base.py
173 +174 +175 +176 +177 +178 +179 +180 +181 +182 +183 +184 +185 +186 |
|
skills_validator(v)
+
+Validates and possibly transforms the skills attribute.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
v |
+
+ Union[SkillSet, BaseSkill, List[BaseSkill], Dict[str, BaseSkill]]
+ |
+
+
+
+ The skills value to validate. + |
+ + required + | +
Returns:
+Name | Type | +Description | +
---|---|---|
SkillSet |
+ SkillSet
+ |
+
+
+
+ The validated set of skills. + |
+
adala/agents/base.py
97 + 98 + 99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 |
|
{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var Ha=/["'&<>]/;Un.exports=$a;function $a(e){var t=""+e,r=Ha.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i