diff --git a/.gitignore b/.gitignore index ee6459c..2e5e0e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ __pycache__ -/data/* \ No newline at end of file +/data/* + +/bin/ +/lib/ +/include/ +/pyvenv.cfg \ No newline at end of file diff --git a/Readme.md b/Readme.md index ece5c9d..cd16038 100644 --- a/Readme.md +++ b/Readme.md @@ -11,4 +11,16 @@ ## Basic Agent - `./docker-agent/` -- `./ums/agent/` \ No newline at end of file +- `./ums/agent/` + + +## Development + +### Run via Docker +- `docker compose up` + +### VS Code Autocomplete ... +- `python3 -m venv .` (only once) +- `source ./bin/activate` +- `pip install requests fastapi pdoc` (only once) +- Select Python from `./bin/python` in VS Code diff --git a/build-mgmt.sh b/build-mgmt.sh index 9340f2a..bb2abf8 100755 --- a/build-mgmt.sh +++ b/build-mgmt.sh @@ -1,5 +1,15 @@ #/bin/bash +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + # https://stackoverflow.com/a/4774063 SCRIPTPATH="$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)" diff --git a/docker-agent/Dockerfile b/docker-agent/Dockerfile index 530d90e..0470cd9 100644 --- a/docker-agent/Dockerfile +++ b/docker-agent/Dockerfile @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + ARG FROM_IMAGE= FROM $FROM_IMAGE diff --git a/docker-compose.yml b/docker-compose.yml index a45a226..ae966db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + # This file is for development!! # docker compose up # See https://git.chai.uni-hamburg.de/UMS-Agenten/Agent-Template for production usage! @@ -7,7 +17,7 @@ services: image: git.chai.uni-hamburg.de/ums-agenten/management:arm64 #image: git.chai.uni-hamburg.de/ums-agenten/management:amd64 ports: - - 8080:80 + - 8000:80 environment: - AGENTS_PROCESS=http://agent_process_1:3001,http://agent_process_2:3001 - AGENTS_SOLVE=http://agent_solve_1:3001 diff --git a/docker-mgmt/Dockerfile b/docker-mgmt/Dockerfile index e3d93c1..5421f01 100644 --- a/docker-mgmt/Dockerfile +++ b/docker-mgmt/Dockerfile @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + FROM ubuntu:24.04 ARG H_GID diff --git a/docker-mgmt/app.conf b/docker-mgmt/app.conf index d624fa4..53af13b 100644 --- a/docker-mgmt/app.conf +++ b/docker-mgmt/app.conf @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + server { listen 80 default_server; diff --git a/docker-mgmt/nginx.conf b/docker-mgmt/nginx.conf index 5f4540a..78c4bb3 100644 --- a/docker-mgmt/nginx.conf +++ b/docker-mgmt/nginx.conf @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + user user; worker_processes auto; pid /run/nginx.pid; diff --git a/docker-mgmt/requirements.txt b/docker-mgmt/requirements.txt index 841427d..516ed0f 100644 --- a/docker-mgmt/requirements.txt +++ b/docker-mgmt/requirements.txt @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + # non frozen dependecies, to use latest requests tqdm diff --git a/docker-mgmt/setup.py b/docker-mgmt/setup.py index c0c8677..24393d1 100644 --- a/docker-mgmt/setup.py +++ b/docker-mgmt/setup.py @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + from setuptools import find_packages, setup setup( diff --git a/docker-mgmt/supervisor.conf b/docker-mgmt/supervisor.conf index b5229bb..b3f0b31 100644 --- a/docker-mgmt/supervisor.conf +++ b/docker-mgmt/supervisor.conf @@ -1,3 +1,13 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + [supervisord] nodaemon=true user=root diff --git a/docs.sh b/docs.sh new file mode 100755 index 0000000..98600d3 --- /dev/null +++ b/docs.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + +pdoc ./ums/ \ + --output-directory ./docs/ \ + --no-browser \ + --docformat google \ + --template-directory ./utils/doc-template \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..cb9f90a --- /dev/null +++ b/docs/index.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/search.js b/docs/search.js new file mode 100644 index 0000000..534fb88 --- /dev/null +++ b/docs/search.js @@ -0,0 +1,46 @@ +window.pdocSearch = (function(){ +/** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();o

\n"}, "ums.agent": {"fullname": "ums.agent", "modulename": "ums.agent", "kind": "module", "doc": "

\n"}, "ums.management": {"fullname": "ums.management", "modulename": "ums.management", "kind": "module", "doc": "

\n"}, "ums.management.main": {"fullname": "ums.management.main", "modulename": "ums.management.main", "kind": "module", "doc": "

\n"}, "ums.management.main.app": {"fullname": "ums.management.main.app", "modulename": "ums.management.main", "qualname": "app", "kind": "variable", "doc": "

\n", "default_value": "<fastapi.applications.FastAPI object>"}, "ums.management.main.read_root": {"fullname": "ums.management.main.read_root", "modulename": "ums.management.main", "qualname": "read_root", "kind": "function", "doc": "

\n", "signature": "():", "funcdef": "def"}, "ums.management.main.huhu": {"fullname": "ums.management.main.huhu", "modulename": "ums.management.main", "qualname": "huhu", "kind": "function", "doc": "

\n", "signature": "():", "funcdef": "def"}, "ums.management.main.read_item": {"fullname": "ums.management.main.read_item", "modulename": "ums.management.main", "qualname": "read_item", "kind": "function", "doc": "

\n", "signature": "(item_id: int, q: Optional[str] = None):", "funcdef": "def"}, "ums.utils": {"fullname": "ums.utils", "modulename": "ums.utils", "kind": "module", "doc": "

\n"}, "ums.utils.const": {"fullname": "ums.utils.const", "modulename": "ums.utils.const", "kind": "module", "doc": "

This file contains shared constants.\nSee the content ...

\n"}, "ums.utils.const.BASE_PATH": {"fullname": "ums.utils.const.BASE_PATH", "modulename": "ums.utils.const", "qualname": "BASE_PATH", "kind": "variable", "doc": "

\n", "default_value": "'/ums-agent'"}, "ums.utils.const.SHARE_PATH": {"fullname": "ums.utils.const.SHARE_PATH", "modulename": "ums.utils.const", "qualname": "SHARE_PATH", "kind": "variable", "doc": "

\n", "default_value": "'/ums-agent/share'"}, "ums.utils.types": {"fullname": "ums.utils.types", "modulename": "ums.utils.types", "kind": "module", "doc": "

This represents the basic types used to interact with the management.\nThe types are implemented using pydantic.\nIt provides validation, allow JSON serialization and works well with FastAPI which is used internally for the http request between the agents and the management.

\n\n

Example

\n\n
\n
        ex = AgentMessage(\n                id="ex1",\n                riddle={\n                        "context":"Example 1",\n                        "question":"Get the name of the person."\n                },\n                data=[\n                        RiddleData(\n                                type=RiddleDataType.TEXT,\n                                file_plain="./cv.txt"\n                        )\n                ]\n        )\n        ex.status.extract.required = False\n
\n
\n\n
\n
        {\n                "id": "ex1",\n                "sub_ids": [],\n                "riddle": {\n                        "context": "Example 1",\n                        "question": "Get the name of the person.",\n                        "solutions_before": []\n                },\n                "solution": null,\n                "data": [\n                        {\n                                "type": "text",\n                                "file_plain": "/ums-agent/share/cv.txt",\n                                "file_extracted": null\n                        }\n                ],\n                "status": {\n                        "extract": {\n                                "required": false,\n                                "finished": false\n                        },\n                        "solve": {\n                                "required": true,\n                                "finished": false\n                        },\n                        "validate": {\n                                "required": true,\n                                "finished": false\n                        },\n                        "trial": 0,\n                        "solved": false\n                }\n        }\n
\n
\n\n
\n
        ex.solution = RiddleSolution(\n                solution="Otto",\n                explanation="Written in line 6 after 'Name:'"\n        )\n
\n
\n\n
\n
        {\n                ...\n                "solution": {\n                        "solution": "Otto",\n                        "explanation": "Written in line 6 after 'Name:'",\n                        "used_data": [],\n                        "accepted": false,\n                        "review": null\n                },\n                ...\n        }\n
\n
\n"}, "ums.utils.types.RiddleInformation": {"fullname": "ums.utils.types.RiddleInformation", "modulename": "ums.utils.types", "qualname": "RiddleInformation", "kind": "class", "doc": "

This is the basic class used as superclass for all message and infos\nabout a riddle.

\n", "bases": "pydantic.main.BaseModel"}, "ums.utils.types.RiddleDataType": {"fullname": "ums.utils.types.RiddleDataType", "modulename": "ums.utils.types", "qualname": "RiddleDataType", "kind": "class", "doc": "

Enum for the three types of data used in a riddle.

\n", "bases": "enum.Enum"}, "ums.utils.types.RiddleDataType.TEXT": {"fullname": "ums.utils.types.RiddleDataType.TEXT", "modulename": "ums.utils.types", "qualname": "RiddleDataType.TEXT", "kind": "variable", "doc": "

\n", "default_value": "<RiddleDataType.TEXT: 'text'>"}, "ums.utils.types.RiddleDataType.IMAGE": {"fullname": "ums.utils.types.RiddleDataType.IMAGE", "modulename": "ums.utils.types", "qualname": "RiddleDataType.IMAGE", "kind": "variable", "doc": "

\n", "default_value": "<RiddleDataType.IMAGE: 'image'>"}, "ums.utils.types.RiddleDataType.AUDIO": {"fullname": "ums.utils.types.RiddleDataType.AUDIO", "modulename": "ums.utils.types", "qualname": "RiddleDataType.AUDIO", "kind": "variable", "doc": "

\n", "default_value": "<RiddleDataType.AUDIO: 'audio'>"}, "ums.utils.types.RiddleData": {"fullname": "ums.utils.types.RiddleData", "modulename": "ums.utils.types", "qualname": "RiddleData", "kind": "class", "doc": "

A data item to be used to solve the riddle

\n", "bases": "RiddleInformation"}, "ums.utils.types.RiddleData.type": {"fullname": "ums.utils.types.RiddleData.type", "modulename": "ums.utils.types", "qualname": "RiddleData.type", "kind": "variable", "doc": "

The type of the data item.

\n", "annotation": ": ums.utils.types.RiddleDataType"}, "ums.utils.types.RiddleData.file_plain": {"fullname": "ums.utils.types.RiddleData.file_plain", "modulename": "ums.utils.types", "qualname": "RiddleData.file_plain", "kind": "variable", "doc": "

The plain file (as path to file system) without any processing.

\n\n

The path will be validated and must start with SHARE_PATH (or be relative to SHARE_PATH).\nThe file must exist.

\n", "annotation": ": Annotated[str, AfterValidator(func=<function _check_data_file at 0x103514f40>)]"}, "ums.utils.types.RiddleData.file_extracted": {"fullname": "ums.utils.types.RiddleData.file_extracted", "modulename": "ums.utils.types", "qualname": "RiddleData.file_extracted", "kind": "variable", "doc": "

The processed files (as path to file system), i.e., a schematic file containing all extracted informations.

\n\n

The path will be validated and must start with SHARE_PATH (or be relative to SHARE_PATH).\nThe file must exist.

\n", "annotation": ": Optional[Annotated[str, AfterValidator(func=<function _check_data_file at 0x103514f40>)]]"}, "ums.utils.types.RiddleSolution": {"fullname": "ums.utils.types.RiddleSolution", "modulename": "ums.utils.types", "qualname": "RiddleSolution", "kind": "class", "doc": "

A solution of a riddle.

\n", "bases": "RiddleInformation"}, "ums.utils.types.RiddleSolution.solution": {"fullname": "ums.utils.types.RiddleSolution.solution", "modulename": "ums.utils.types", "qualname": "RiddleSolution.solution", "kind": "variable", "doc": "

The textual value of the solution.

\n", "annotation": ": str"}, "ums.utils.types.RiddleSolution.explanation": {"fullname": "ums.utils.types.RiddleSolution.explanation", "modulename": "ums.utils.types", "qualname": "RiddleSolution.explanation", "kind": "variable", "doc": "

An explanation of the solution.

\n", "annotation": ": str"}, "ums.utils.types.RiddleSolution.used_data": {"fullname": "ums.utils.types.RiddleSolution.used_data", "modulename": "ums.utils.types", "qualname": "RiddleSolution.used_data", "kind": "variable", "doc": "

The data items used to create the solution (optional).

\n", "annotation": ": List[ums.utils.types.RiddleData]"}, "ums.utils.types.RiddleSolution.accepted": {"fullname": "ums.utils.types.RiddleSolution.accepted", "modulename": "ums.utils.types", "qualname": "RiddleSolution.accepted", "kind": "variable", "doc": "

If the solution is accepted by validator/ gatekeeper.

\n", "annotation": ": bool"}, "ums.utils.types.RiddleSolution.review": {"fullname": "ums.utils.types.RiddleSolution.review", "modulename": "ums.utils.types", "qualname": "RiddleSolution.review", "kind": "variable", "doc": "

A review of the solution (if None: not tried to validate)

\n", "annotation": ": str | None"}, "ums.utils.types.Riddle": {"fullname": "ums.utils.types.Riddle", "modulename": "ums.utils.types", "qualname": "Riddle", "kind": "class", "doc": "

The riddle (the task description and possibly a solution)

\n", "bases": "RiddleInformation"}, "ums.utils.types.Riddle.context": {"fullname": "ums.utils.types.Riddle.context", "modulename": "ums.utils.types", "qualname": "Riddle.context", "kind": "variable", "doc": "

The context of the riddle (as textual string).

\n", "annotation": ": str"}, "ums.utils.types.Riddle.question": {"fullname": "ums.utils.types.Riddle.question", "modulename": "ums.utils.types", "qualname": "Riddle.question", "kind": "variable", "doc": "

The actual main question of the riddle (as textual string).

\n", "annotation": ": str"}, "ums.utils.types.Riddle.solutions_before": {"fullname": "ums.utils.types.Riddle.solutions_before", "modulename": "ums.utils.types", "qualname": "Riddle.solutions_before", "kind": "variable", "doc": "

If already tried to solve this riddle before, the (not accepted) solutions are stored here

\n", "annotation": ": List[ums.utils.types.RiddleSolution]"}, "ums.utils.types.RiddleSubStatus": {"fullname": "ums.utils.types.RiddleSubStatus", "modulename": "ums.utils.types", "qualname": "RiddleSubStatus", "kind": "class", "doc": "

The sub status for each possible step a riddle may go though.

\n", "bases": "RiddleInformation"}, "ums.utils.types.RiddleSubStatus.required": {"fullname": "ums.utils.types.RiddleSubStatus.required", "modulename": "ums.utils.types", "qualname": "RiddleSubStatus.required", "kind": "variable", "doc": "

Is this step required (i.e., requested)

\n", "annotation": ": bool"}, "ums.utils.types.RiddleSubStatus.finished": {"fullname": "ums.utils.types.RiddleSubStatus.finished", "modulename": "ums.utils.types", "qualname": "RiddleSubStatus.finished", "kind": "variable", "doc": "

Was this step already executed.

\n", "annotation": ": bool"}, "ums.utils.types.RiddleStatus": {"fullname": "ums.utils.types.RiddleStatus", "modulename": "ums.utils.types", "qualname": "RiddleStatus", "kind": "class", "doc": "

The status of a riddle, will be mostly changed by Management when the riddle is sent to different agents while solving it.

\n", "bases": "RiddleInformation"}, "ums.utils.types.RiddleStatus.extract": {"fullname": "ums.utils.types.RiddleStatus.extract", "modulename": "ums.utils.types", "qualname": "RiddleStatus.extract", "kind": "variable", "doc": "

The first extract step (image, text, audio -> more sematic data)

\n\n

The RiddleData items in AgentMessage.data shall have file_extracted afterwards.

\n", "annotation": ": ums.utils.types.RiddleSubStatus"}, "ums.utils.types.RiddleStatus.solve": {"fullname": "ums.utils.types.RiddleStatus.solve", "modulename": "ums.utils.types", "qualname": "RiddleStatus.solve", "kind": "variable", "doc": "

The main solving step.

\n\n

AgentMessage.solution shall be an RiddleSolution afterwards.

\n", "annotation": ": ums.utils.types.RiddleSubStatus"}, "ums.utils.types.RiddleStatus.validate": {"fullname": "ums.utils.types.RiddleStatus.validate", "modulename": "ums.utils.types", "qualname": "RiddleStatus.validate", "kind": "function", "doc": "

The validation step, i.e., does the gatekeeper accept the solution in AgentMessage.solution.

\n", "signature": "(cls, value: Any) -> Self:", "funcdef": "def"}, "ums.utils.types.RiddleStatus.trial": {"fullname": "ums.utils.types.RiddleStatus.trial", "modulename": "ums.utils.types", "qualname": "RiddleStatus.trial", "kind": "variable", "doc": "

A counter for the number of trials.\nEach time the gatekeeper does not accept a solution of this riddle, the value is incremented.

\n", "annotation": ": int"}, "ums.utils.types.RiddleStatus.solved": {"fullname": "ums.utils.types.RiddleStatus.solved", "modulename": "ums.utils.types", "qualname": "RiddleStatus.solved", "kind": "variable", "doc": "

True, after the gatekeeper accepts the solution at AgentMessage.solution

\n", "annotation": ": bool"}, "ums.utils.types.AgentMessage": {"fullname": "ums.utils.types.AgentMessage", "modulename": "ums.utils.types", "qualname": "AgentMessage", "kind": "class", "doc": "

The basic message, which is sent be the agent and the management.\nThe objects will be JSON en- and decoded.

\n", "bases": "RiddleInformation"}, "ums.utils.types.AgentMessage.id": {"fullname": "ums.utils.types.AgentMessage.id", "modulename": "ums.utils.types", "qualname": "AgentMessage.id", "kind": "variable", "doc": "

The riddle id, e.g., ex1\nThis is a unique string and identifies the riddle.

\n", "annotation": ": str"}, "ums.utils.types.AgentMessage.sub_ids": {"fullname": "ums.utils.types.AgentMessage.sub_ids", "modulename": "ums.utils.types", "qualname": "AgentMessage.sub_ids", "kind": "variable", "doc": "

There might be cases, when an agent decided to split in riddle in multiple smaller steps.\nEach sub riddle will then get its own id (i.e., ex1-sub1) while the sub id is added here as reference.

\n", "annotation": ": List[str]"}, "ums.utils.types.AgentMessage.riddle": {"fullname": "ums.utils.types.AgentMessage.riddle", "modulename": "ums.utils.types", "qualname": "AgentMessage.riddle", "kind": "variable", "doc": "

The riddle to solve.

\n", "annotation": ": ums.utils.types.Riddle"}, "ums.utils.types.AgentMessage.solution": {"fullname": "ums.utils.types.AgentMessage.solution", "modulename": "ums.utils.types", "qualname": "AgentMessage.solution", "kind": "variable", "doc": "

The solution of the riddle (or empty if no solution available)

\n", "annotation": ": ums.utils.types.RiddleSolution | None"}, "ums.utils.types.AgentMessage.data": {"fullname": "ums.utils.types.AgentMessage.data", "modulename": "ums.utils.types", "qualname": "AgentMessage.data", "kind": "variable", "doc": "

The data to get the solution from.

\n", "annotation": ": List[ums.utils.types.RiddleData]"}, "ums.utils.types.AgentMessage.status": {"fullname": "ums.utils.types.AgentMessage.status", "modulename": "ums.utils.types", "qualname": "AgentMessage.status", "kind": "variable", "doc": "

The status of the riddle.

\n", "annotation": ": ums.utils.types.RiddleStatus"}}, "docInfo": {"ums": {"qualname": 0, "fullname": 1, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "ums.agent": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "ums.management": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "ums.management.main": {"qualname": 0, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "ums.management.main.app": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 8, "signature": 0, "bases": 0, "doc": 3}, "ums.management.main.read_root": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 7, "bases": 0, "doc": 3}, "ums.management.main.huhu": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 7, "bases": 0, "doc": 3}, "ums.management.main.read_item": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 40, "bases": 0, "doc": 3}, "ums.utils": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "ums.utils.const": {"qualname": 0, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 11}, "ums.utils.const.BASE_PATH": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 6, "signature": 0, "bases": 0, "doc": 3}, "ums.utils.const.SHARE_PATH": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 6, "signature": 0, "bases": 0, "doc": 3}, "ums.utils.types": {"qualname": 0, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 993}, "ums.utils.types.RiddleInformation": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 3, "doc": 19}, "ums.utils.types.RiddleDataType": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 2, "doc": 14}, "ums.utils.types.RiddleDataType.TEXT": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 9, "signature": 0, "bases": 0, "doc": 3}, "ums.utils.types.RiddleDataType.IMAGE": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 9, "signature": 0, "bases": 0, "doc": 3}, "ums.utils.types.RiddleDataType.AUDIO": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 9, "signature": 0, "bases": 0, "doc": 3}, "ums.utils.types.RiddleData": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 1, "doc": 12}, "ums.utils.types.RiddleData.type": {"qualname": 2, "fullname": 5, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "ums.utils.types.RiddleData.file_plain": {"qualname": 3, "fullname": 6, "annotation": 13, "default_value": 0, "signature": 0, "bases": 0, "doc": 42}, "ums.utils.types.RiddleData.file_extracted": {"qualname": 3, "fullname": 6, "annotation": 13, "default_value": 0, "signature": 0, "bases": 0, "doc": 48}, "ums.utils.types.RiddleSolution": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 1, "doc": 8}, "ums.utils.types.RiddleSolution.solution": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "ums.utils.types.RiddleSolution.explanation": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 8}, "ums.utils.types.RiddleSolution.used_data": {"qualname": 3, "fullname": 6, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 12}, "ums.utils.types.RiddleSolution.accepted": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 11}, "ums.utils.types.RiddleSolution.review": {"qualname": 2, "fullname": 5, "annotation": 4, "default_value": 0, "signature": 0, "bases": 0, "doc": 14}, "ums.utils.types.Riddle": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 1, "doc": 12}, "ums.utils.types.Riddle.context": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 11}, "ums.utils.types.Riddle.question": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 13}, "ums.utils.types.Riddle.solutions_before": {"qualname": 3, "fullname": 6, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 17}, "ums.utils.types.RiddleSubStatus": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 1, "doc": 15}, "ums.utils.types.RiddleSubStatus.required": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 10}, "ums.utils.types.RiddleSubStatus.finished": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 8}, "ums.utils.types.RiddleStatus": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 1, "doc": 25}, "ums.utils.types.RiddleStatus.extract": {"qualname": 2, "fullname": 5, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 34}, "ums.utils.types.RiddleStatus.solve": {"qualname": 2, "fullname": 5, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 23}, "ums.utils.types.RiddleStatus.validate": {"qualname": 2, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 19}, "ums.utils.types.RiddleStatus.trial": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 26}, "ums.utils.types.RiddleStatus.solved": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 14}, "ums.utils.types.AgentMessage": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 1, "doc": 23}, "ums.utils.types.AgentMessage.id": {"qualname": 2, "fullname": 5, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 20}, "ums.utils.types.AgentMessage.sub_ids": {"qualname": 3, "fullname": 6, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 47}, "ums.utils.types.AgentMessage.riddle": {"qualname": 2, "fullname": 5, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "ums.utils.types.AgentMessage.solution": {"qualname": 2, "fullname": 5, "annotation": 7, "default_value": 0, "signature": 0, "bases": 0, "doc": 14}, "ums.utils.types.AgentMessage.data": {"qualname": 2, "fullname": 5, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 10}, "ums.utils.types.AgentMessage.status": {"qualname": 2, "fullname": 5, "annotation": 5, "default_value": 0, "signature": 0, "bases": 0, "doc": 8}}, "length": 48, "save": true}, "index": {"qualname": {"root": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "p": {"docs": {"ums.management.main.app": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {"ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}}, "df": 1}}}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 7}}}}}}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"ums.management.main.read_root": {"tf": 1}, "ums.management.main.read_item": {"tf": 1}}, "df": 2}}, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "w": {"docs": {"ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 1}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSubStatus.required": {"tf": 1}}, "df": 1}}}}}}}, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {"ums.management.main.read_root": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}}, "df": 5, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 4, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 4}}}}}}}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 6}}}}}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 3}}}}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 6}}}}}}}}}}}}, "h": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "u": {"docs": {"ums.management.main.huhu": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}}, "df": 1}}}}, "d": {"docs": {"ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 1, "s": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 1}}}}}}, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1}, "ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 2}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 2, "s": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 1}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 1, "d": {"docs": {"ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleDataType.TEXT": {"tf": 1}}, "df": 1}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.type": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 1}}}}}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleSolution.explanation": {"tf": 1}}, "df": 1}}}}}}}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}}, "df": 1}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 2}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.Riddle.context": {"tf": 1}}, "df": 1}}}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.Riddle.question": {"tf": 1}}, "df": 1}}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 1}}}}}}}}}}, "fullname": {"root": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "s": {"docs": {"ums": {"tf": 1}, "ums.agent": {"tf": 1}, "ums.management": {"tf": 1}, "ums.management.main": {"tf": 1}, "ums.management.main.app": {"tf": 1}, "ums.management.main.read_root": {"tf": 1}, "ums.management.main.huhu": {"tf": 1}, "ums.management.main.read_item": {"tf": 1}, "ums.utils": {"tf": 1}, "ums.utils.const": {"tf": 1}, "ums.utils.const.BASE_PATH": {"tf": 1}, "ums.utils.const.SHARE_PATH": {"tf": 1}, "ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 48}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils": {"tf": 1}, "ums.utils.const": {"tf": 1}, "ums.utils.const.BASE_PATH": {"tf": 1}, "ums.utils.const.SHARE_PATH": {"tf": 1}, "ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 40}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.agent": {"tf": 1}}, "df": 1, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 7}}}}}}}}}}}, "p": {"docs": {}, "df": 0, "p": {"docs": {"ums.management.main.app": {"tf": 1}}, "df": 1}}, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {"ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}}, "df": 1}}}}}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.management": {"tf": 1}, "ums.management.main": {"tf": 1}, "ums.management.main.app": {"tf": 1}, "ums.management.main.read_root": {"tf": 1}, "ums.management.main.huhu": {"tf": 1}, "ums.management.main.read_item": {"tf": 1}}, "df": 6}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {"ums.management.main": {"tf": 1}, "ums.management.main.app": {"tf": 1}, "ums.management.main.read_root": {"tf": 1}, "ums.management.main.huhu": {"tf": 1}, "ums.management.main.read_item": {"tf": 1}}, "df": 5}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"ums.management.main.read_root": {"tf": 1}, "ums.management.main.read_item": {"tf": 1}}, "df": 2}}, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "w": {"docs": {"ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 1}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSubStatus.required": {"tf": 1}}, "df": 1}}}}}}}, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {"ums.management.main.read_root": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}}, "df": 5, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 4, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 4}}}}}}}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 6}}}}}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 3}}}}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 6}}}}}}}}}}}}, "h": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "u": {"docs": {"ums.management.main.huhu": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}}, "df": 1}}}}, "d": {"docs": {"ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 1, "s": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.const": {"tf": 1}, "ums.utils.const.BASE_PATH": {"tf": 1}, "ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 3}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.Riddle.context": {"tf": 1}}, "df": 1}}}}}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 1}}}}}}, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1}, "ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 2}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 2, "s": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 1}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 1, "d": {"docs": {"ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 1}}}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.type": {"tf": 1}}, "df": 1, "s": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 36}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleDataType.TEXT": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 1}}}}}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleSolution.explanation": {"tf": 1}}, "df": 1}}}}}}}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 2}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.Riddle.question": {"tf": 1}}, "df": 1}}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 1}}}}}}}}}}, "annotation": {"root": {"0": {"docs": {}, "df": 0, "x": {"1": {"0": {"3": {"5": {"1": {"4": {"docs": {}, "df": 0, "f": {"4": {"0": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}, "docs": {}, "df": 0}, "docs": {}, "df": 0}}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}}, "docs": {"ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1.4142135623730951}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 23, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 6}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 9}}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 9}}}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage.riddle": {"tf": 1}}, "df": 1, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 2, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.type": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 2}}}}}}}, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 2}}}}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}}}}}}}}}}, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}, "f": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}}}}, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}, "l": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 3}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "k": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}, "g": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 6}}}, "b": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 4}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 2}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}}, "default_value": {"root": {"docs": {"ums.management.main.app": {"tf": 1.4142135623730951}, "ums.utils.const.BASE_PATH": {"tf": 1.4142135623730951}, "ums.utils.const.SHARE_PATH": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1.4142135623730951}}, "df": 6, "l": {"docs": {}, "df": 0, "t": {"docs": {"ums.management.main.app": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 4}}, "f": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"ums.management.main.app": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"ums.management.main.app": {"tf": 1}}, "df": 1}}}}}}}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1}}, "df": 1, "/": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 1}}}}}}}}}}, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {"ums.utils.types.RiddleDataType.AUDIO": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "o": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "j": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"ums.management.main.app": {"tf": 1}}, "df": 1}}}}}}, "g": {"docs": {}, "df": 0, "t": {"docs": {"ums.management.main.app": {"tf": 1}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 4}}, "x": {"2": {"7": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1.4142135623730951}, "ums.utils.const.SHARE_PATH": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1.4142135623730951}}, "df": 5}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.const.BASE_PATH": {"tf": 1}, "ums.utils.const.SHARE_PATH": {"tf": 1}}, "df": 2}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType.TEXT": {"tf": 1}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1}}, "df": 3}}}}}}}}}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleDataType.TEXT": {"tf": 1.4142135623730951}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType.IMAGE": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "signature": {"root": {"docs": {"ums.management.main.read_root": {"tf": 2.6457513110645907}, "ums.management.main.huhu": {"tf": 2.6457513110645907}, "ums.management.main.read_item": {"tf": 5.744562646538029}, "ums.utils.types.RiddleStatus.validate": {"tf": 4.47213595499958}}, "df": 4, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}}, "d": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}}, "q": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "f": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"ums.management.main.read_item": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 1}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "y": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 1}}}}}, "bases": {"root": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}}}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {"ums.utils.types.RiddleDataType": {"tf": 1.4142135623730951}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 6}}}}}}}}}}}}}}}}}}}, "doc": {"root": {"0": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}, "1": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}, "3": {"9": {"docs": {"ums.utils.types": {"tf": 2}}, "df": 1}, "docs": {}, "df": 0}, "6": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}, "docs": {"ums": {"tf": 1.7320508075688772}, "ums.agent": {"tf": 1.7320508075688772}, "ums.management": {"tf": 1.7320508075688772}, "ums.management.main": {"tf": 1.7320508075688772}, "ums.management.main.app": {"tf": 1.7320508075688772}, "ums.management.main.read_root": {"tf": 1.7320508075688772}, "ums.management.main.huhu": {"tf": 1.7320508075688772}, "ums.management.main.read_item": {"tf": 1.7320508075688772}, "ums.utils": {"tf": 1.7320508075688772}, "ums.utils.const": {"tf": 1.7320508075688772}, "ums.utils.const.BASE_PATH": {"tf": 1.7320508075688772}, "ums.utils.const.SHARE_PATH": {"tf": 1.7320508075688772}, "ums.utils.types": {"tf": 27.40437921208944}, "ums.utils.types.RiddleInformation": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleDataType": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleDataType.TEXT": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleDataType.IMAGE": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleDataType.AUDIO": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleData": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.type": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleData.file_plain": {"tf": 3.1622776601683795}, "ums.utils.types.RiddleData.file_extracted": {"tf": 3.1622776601683795}, "ums.utils.types.RiddleSolution": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSolution.solution": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSolution.review": {"tf": 1.7320508075688772}, "ums.utils.types.Riddle": {"tf": 1.7320508075688772}, "ums.utils.types.Riddle.context": {"tf": 1.7320508075688772}, "ums.utils.types.Riddle.question": {"tf": 1.7320508075688772}, "ums.utils.types.Riddle.solutions_before": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSubStatus": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleStatus": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleStatus.extract": {"tf": 3.605551275463989}, "ums.utils.types.RiddleStatus.solve": {"tf": 3.4641016151377544}, "ums.utils.types.RiddleStatus.validate": {"tf": 2.23606797749979}, "ums.utils.types.RiddleStatus.trial": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleStatus.solved": {"tf": 2}, "ums.utils.types.AgentMessage": {"tf": 1.7320508075688772}, "ums.utils.types.AgentMessage.id": {"tf": 2.23606797749979}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 3}, "ums.utils.types.AgentMessage.riddle": {"tf": 1.7320508075688772}, "ums.utils.types.AgentMessage.solution": {"tf": 1.7320508075688772}, "ums.utils.types.AgentMessage.data": {"tf": 1.7320508075688772}, "ums.utils.types.AgentMessage.status": {"tf": 1.7320508075688772}}, "df": 48, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.const": {"tf": 1}, "ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 8}}, "e": {"docs": {"ums.utils.const": {"tf": 1}, "ums.utils.types": {"tf": 3.1622776601683795}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_plain": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleSolution.solution": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1.4142135623730951}, "ums.utils.types.Riddle.context": {"tf": 1.4142135623730951}, "ums.utils.types.Riddle.question": {"tf": 1.4142135623730951}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.extract": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleStatus.trial": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleStatus.solved": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage": {"tf": 2}, "ums.utils.types.AgentMessage.id": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.data": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.status": {"tf": 1.4142135623730951}}, "df": 31, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}, "n": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleDataType": {"tf": 1}}, "df": 1}}}, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}}, "df": 1}}}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.type": {"tf": 1}}, "df": 2, "s": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType": {"tf": 1}}, "df": 2}}}}, "o": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_plain": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 11}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 2, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}}, "df": 3}}}}}}, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}}, "r": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 2}}, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1, "s": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 2}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "k": {"docs": {"ums.utils.types.Riddle": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const": {"tf": 1}, "ums.utils.types": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleData.file_plain": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 5, "s": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types": {"tf": 1.7320508075688772}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}, "l": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 2.6457513110645907}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 5}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {"ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 1}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.const": {"tf": 1}}, "df": 1}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.const": {"tf": 1}}, "df": 1}}, "x": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.Riddle.context": {"tf": 1}}, "df": 2}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.const": {"tf": 1}}, "df": 1}}}}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}}}, "v": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}}, "df": 1}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}}, "df": 1}}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.4142135623730951}}, "df": 2, "d": {"docs": {"ums.utils.const": {"tf": 1}}, "df": 1}}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 2}}}}, "e": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.const": {"tf": 1}}, "df": 1}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}}}}}, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 2}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 4}}}, "r": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 3}}}}, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "p": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 6, "s": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "b": {"1": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}, "docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1.4142135623730951}}, "df": 3}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}}}}}}, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 2.23606797749979}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.solution": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 14, "s": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 2}}}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}}, "df": 4, "d": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 2}}}}}}, "y": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}}, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSubStatus.required": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types": {"tf": 2}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}}, "df": 2}}}}}}, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "w": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 2}}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}}}}, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.riddle": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 17, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 2, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 3}}}}, "e": {"docs": {"ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 7, "t": {"docs": {}, "df": 0, "w": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 2}}}}}, "y": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}}, "df": 2}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}}, "df": 5}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}, "m": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 1}}}}}}, "i": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 4, "n": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1.4142135623730951}}, "df": 5, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "y": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}}}}}, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}}}}}}}, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}}}, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1}}}}, "t": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}}, "df": 2, "e": {"docs": {}, "df": 0, "m": {"docs": {"ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}}, "df": 2, "s": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 2}}}, "s": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}, "s": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 9}, "d": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1.4142135623730951}}, "df": 3, "s": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 1}}}}}}}}}, "f": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 4}}, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 3, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 1}}}}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 5}}}, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}, "h": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 2}}, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 2}}}, "e": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 2}}}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 1}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 3}}}}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 2}}, "y": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}}, "df": 1}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 2}}}}}}, "u": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1.4142135623730951}}, "df": 2}}, "l": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "y": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 11, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 2}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2, "o": {"docs": {}, "df": 0, "w": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "y": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 2}}}}}}, "n": {"docs": {"ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 3, "d": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.Riddle": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 7}, "y": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 1}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.AgentMessage": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 2, "s": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}}, "df": 2}, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 5}}}}}}}, "/": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "v": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "f": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 2, "w": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}, "ums.utils.types.RiddleStatus.solve": {"tf": 1}}, "df": 2}}}}}}}}}, "c": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 2, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}}, "df": 3}}, "s": {"docs": {"ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.Riddle.question": {"tf": 1}}, "df": 1}}}}}, "s": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 6}, "b": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleInformation": {"tf": 1}}, "df": 1}}}}, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1}}}}, "t": {"docs": {"ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 1}, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 1}}}}}}}}}, "p": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}}}, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 1}}}}}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}}}}}, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleData.file_plain": {"tf": 1}}, "df": 2}}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 2}, "ums.utils.types.RiddleData.file_extracted": {"tf": 2}}, "df": 2}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "y": {"docs": {"ums.utils.types.Riddle": {"tf": 1}}, "df": 1}, "e": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}}, "df": 1}}}}}}}}, "v": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}}, "df": 2}}}, "e": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 2, "d": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}, "o": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}}, "df": 1}}}}}}, "u": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 2}}}}}, "j": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.AgentMessage": {"tf": 1}}, "df": 2}}}}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {"ums.utils.types": {"tf": 1}}, "df": 1}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 2}}}, "a": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 1}}}}, "e": {"docs": {"ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleSubStatus.required": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 5, "x": {"1": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.id": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 3}, "docs": {"ums.utils.types": {"tf": 1.7320508075688772}}, "df": 1, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1.7320508075688772}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 2, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1}}, "df": 3}}}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}}, "df": 2}}}}}}}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}}, "df": 2}}}, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.RiddleSubStatus.finished": {"tf": 1}}, "df": 1}}}}}}}, "n": {"docs": {"ums.utils.types.AgentMessage": {"tf": 1}}, "df": 1, "u": {"docs": {}, "df": 0, "m": {"docs": {"ums.utils.types.RiddleDataType": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 3}}}, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 1}}}}}, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 9.38083151964686}}, "df": 1}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.Riddle.question": {"tf": 1}}, "df": 2}}}}}}}}, "g": {"docs": {"ums.utils.types.AgentMessage.id": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.sub_ids": {"tf": 1}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 3}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleSolution.accepted": {"tf": 1}, "ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}, "ums.utils.types.RiddleStatus.solved": {"tf": 1}}, "df": 4}}}}}}}}}, "o": {"docs": {"ums.utils.types.RiddleSubStatus": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 2}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types": {"tf": 1.7320508075688772}}, "df": 1}}, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 1}}}}}, "o": {"docs": {"ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 1, "n": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types.RiddleSolution.review": {"tf": 1}}, "df": 1}}, "t": {"docs": {"ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle.solutions_before": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 3}}}, "o": {"docs": {}, "df": 0, "f": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleSolution": {"tf": 1}, "ums.utils.types.RiddleSolution.solution": {"tf": 1}, "ums.utils.types.RiddleSolution.explanation": {"tf": 1}, "ums.utils.types.RiddleSolution.review": {"tf": 1}, "ums.utils.types.Riddle.context": {"tf": 1}, "ums.utils.types.Riddle.question": {"tf": 1}, "ums.utils.types.RiddleStatus": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.solution": {"tf": 1}, "ums.utils.types.AgentMessage.status": {"tf": 1}}, "df": 13}, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "o": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}}}, "r": {"docs": {"ums.utils.types.RiddleData.file_plain": {"tf": 1}, "ums.utils.types.RiddleData.file_extracted": {"tf": 1}, "ums.utils.types.AgentMessage.solution": {"tf": 1}}, "df": 3}, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"ums.utils.types.RiddleSolution.used_data": {"tf": 1}}, "df": 1}}}}}}}, "b": {"docs": {}, "df": 0, "j": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.AgentMessage": {"tf": 1}}, "df": 1}}}}}}, "w": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"ums.utils.types": {"tf": 1.7320508075688772}, "ums.utils.types.RiddleDataType": {"tf": 1}, "ums.utils.types.RiddleData": {"tf": 1}, "ums.utils.types.RiddleData.type": {"tf": 1}, "ums.utils.types.RiddleSolution.used_data": {"tf": 1}, "ums.utils.types.RiddleStatus.extract": {"tf": 1.4142135623730951}, "ums.utils.types.AgentMessage.data": {"tf": 1}}, "df": 7}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"ums.utils.types.Riddle": {"tf": 1}}, "df": 1}}}}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.AgentMessage": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"ums.utils.types.AgentMessage.sub_ids": {"tf": 1}}, "df": 1}}}}}}, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"ums.utils.types.RiddleStatus": {"tf": 1}}, "df": 1}}}}}}}}, "o": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"ums.utils.types.RiddleStatus.validate": {"tf": 1}, "ums.utils.types.RiddleStatus.trial": {"tf": 1}}, "df": 2}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"ums.utils.types": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "pipeline": ["trimmer"], "_isPrebuiltIndex": true}; + + // mirrored in build-search-index.js (part 1) + // Also split on html tags. this is a cheap heuristic, but good enough. + elasticlunr.tokenizer.setSeperator(/[\s\-.;&_'"=,()]+|<[^>]*>/); + + let searchIndex; + if (docs._isPrebuiltIndex) { + console.info("using precompiled search index"); + searchIndex = elasticlunr.Index.load(docs); + } else { + console.time("building search index"); + // mirrored in build-search-index.js (part 2) + searchIndex = elasticlunr(function () { + this.pipeline.remove(elasticlunr.stemmer); + this.pipeline.remove(elasticlunr.stopWordFilter); + this.addField("qualname"); + this.addField("fullname"); + this.addField("annotation"); + this.addField("default_value"); + this.addField("signature"); + this.addField("bases"); + this.addField("doc"); + this.setRef("fullname"); + }); + for (let doc of docs) { + searchIndex.addDoc(doc); + } + console.timeEnd("building search index"); + } + + return (term) => searchIndex.search(term, { + fields: { + qualname: {boost: 4}, + fullname: {boost: 2}, + annotation: {boost: 2}, + default_value: {boost: 2}, + signature: {boost: 2}, + bases: {boost: 2}, + doc: {boost: 1}, + }, + expand: true + }); +})(); \ No newline at end of file diff --git a/docs/ums.html b/docs/ums.html new file mode 100644 index 0000000..376b017 --- /dev/null +++ b/docs/ums.html @@ -0,0 +1,249 @@ + + + + + + + + + ums API documentation + + + + + + + + + +
+
+

+ums

+ + + + + + +
1# Agenten Plattform
+2#
+3# (c) 2024 Magnus Bender
+4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+5# 	Universitaet Hamburg
+6# 	https://www.chai.uni-hamburg.de/~bender
+7#  
+8# source code released under the terms of GNU Public License Version 3
+9# https://www.gnu.org/licenses/gpl-3.0.txt
+
+ + +
+
+ + \ No newline at end of file diff --git a/docs/ums/__cli__.html b/docs/ums/__cli__.html new file mode 100644 index 0000000..7b65edc --- /dev/null +++ b/docs/ums/__cli__.html @@ -0,0 +1,248 @@ + + + + + + + + + ums.__cli__ API documentation + + + + + + + + + +
+
+

+ums.__cli__

+ + + + + + +
1# Agenten Plattform
+2#
+3# (c) 2024 Magnus Bender
+4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+5# 	Universitaet Hamburg
+6# 	https://www.chai.uni-hamburg.de/~bender
+7#  
+8# source code released under the terms of GNU Public License Version 3
+9# https://www.gnu.org/licenses/gpl-3.0.txt
+
+ + +
+
+ + \ No newline at end of file diff --git a/docs/ums/agent.html b/docs/ums/agent.html new file mode 100644 index 0000000..7294825 --- /dev/null +++ b/docs/ums/agent.html @@ -0,0 +1,248 @@ + + + + + + + + + ums.agent API documentation + + + + + + + + + +
+
+

+ums.agent

+ + + + + + +
1# Agenten Plattform
+2#
+3# (c) 2024 Magnus Bender
+4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+5# 	Universitaet Hamburg
+6# 	https://www.chai.uni-hamburg.de/~bender
+7#  
+8# source code released under the terms of GNU Public License Version 3
+9# https://www.gnu.org/licenses/gpl-3.0.txt
+
+ + +
+
+ + \ No newline at end of file diff --git a/docs/ums/management.html b/docs/ums/management.html new file mode 100644 index 0000000..30eeff0 --- /dev/null +++ b/docs/ums/management.html @@ -0,0 +1,252 @@ + + + + + + + + + ums.management API documentation + + + + + + + + + +
+
+

+ums.management

+ + + + + + +
1# Agenten Plattform
+2#
+3# (c) 2024 Magnus Bender
+4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+5# 	Universitaet Hamburg
+6# 	https://www.chai.uni-hamburg.de/~bender
+7#  
+8# source code released under the terms of GNU Public License Version 3
+9# https://www.gnu.org/licenses/gpl-3.0.txt
+
+ + +
+
+ + \ No newline at end of file diff --git a/docs/ums/management/main.html b/docs/ums/management/main.html new file mode 100644 index 0000000..e96dc62 --- /dev/null +++ b/docs/ums/management/main.html @@ -0,0 +1,402 @@ + + + + + + + + + ums.management.main API documentation + + + + + + + + + +
+
+

+ums.management.main

+ + + + + + +
 1# Agenten Plattform
+ 2#
+ 3# (c) 2024 Magnus Bender
+ 4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+ 5# 	Universitaet Hamburg
+ 6# 	https://www.chai.uni-hamburg.de/~bender
+ 7#  
+ 8# source code released under the terms of GNU Public License Version 3
+ 9# https://www.gnu.org/licenses/gpl-3.0.txt
+10
+11# TEST ONLY
+12
+13from ums.utils import AgentMessage, RiddleData, RiddleDataType, RiddleSolution
+14
+15from typing import Union
+16
+17from fastapi import FastAPI
+18
+19app = FastAPI()
+20
+21@app.get("/")
+22def read_root():
+23	return {"Hello": "World"}
+24
+25@app.get("/test")
+26def huhu():
+27	ex = AgentMessage(
+28			id="ex1",
+29			riddle={
+30				"context":"Example 1",
+31				"question":"Get the name of the person."
+32			},
+33			data=[
+34				RiddleData(
+35					type=RiddleDataType.TEXT,
+36					file_plain="./cv.txt"
+37				)
+38			]
+39		)
+40	ex.status.extract.required = False
+41
+42	ex.solution = RiddleSolution(
+43		solution="Otto",
+44		explanation="Written in line 6 after 'Name:'"
+45	)
+46	
+47	return ex
+48
+49
+50@app.get("/items/{item_id}")
+51def read_item(item_id: int, q: Union[str, None] = None):
+52	return {"item_id": item_id, "q": q}
+
+ + +
+
+
+ app = +<fastapi.applications.FastAPI object> + + +
+ + + + +
+
+ +
+
@app.get('/')
+ + def + read_root(): + + + +
+ +
22@app.get("/")
+23def read_root():
+24	return {"Hello": "World"}
+
+ + + + +
+
+ +
+
@app.get('/test')
+ + def + huhu(): + + + +
+ +
26@app.get("/test")
+27def huhu():
+28	ex = AgentMessage(
+29			id="ex1",
+30			riddle={
+31				"context":"Example 1",
+32				"question":"Get the name of the person."
+33			},
+34			data=[
+35				RiddleData(
+36					type=RiddleDataType.TEXT,
+37					file_plain="./cv.txt"
+38				)
+39			]
+40		)
+41	ex.status.extract.required = False
+42
+43	ex.solution = RiddleSolution(
+44		solution="Otto",
+45		explanation="Written in line 6 after 'Name:'"
+46	)
+47	
+48	return ex
+
+ + + + +
+
+ +
+
@app.get('/items/{item_id}')
+ + def + read_item(item_id: int, q: Optional[str] = None): + + + +
+ +
51@app.get("/items/{item_id}")
+52def read_item(item_id: int, q: Union[str, None] = None):
+53	return {"item_id": item_id, "q": q}
+
+ + + + +
+
+ + \ No newline at end of file diff --git a/docs/ums/utils.html b/docs/ums/utils.html new file mode 100644 index 0000000..e75cd7e --- /dev/null +++ b/docs/ums/utils.html @@ -0,0 +1,265 @@ + + + + + + + + + ums.utils API documentation + + + + + + + + + +
+
+

+ums.utils

+ + + + + + +
 1# Agenten Plattform
+ 2#
+ 3# (c) 2024 Magnus Bender
+ 4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+ 5# 	Universitaet Hamburg
+ 6# 	https://www.chai.uni-hamburg.de/~bender
+ 7#  
+ 8# source code released under the terms of GNU Public License Version 3
+ 9# https://www.gnu.org/licenses/gpl-3.0.txt
+10
+11from ums.utils.types import (
+12	RiddleInformation,
+13		AgentMessage,
+14			Riddle,
+15			RiddleSolution,
+16			RiddleData, 
+17				RiddleDataType,
+18			RiddleStatus
+19)
+20
+21from ums.utils.const import *
+
+ + +
+
+ + \ No newline at end of file diff --git a/docs/ums/utils/const.html b/docs/ums/utils/const.html new file mode 100644 index 0000000..4d91ef5 --- /dev/null +++ b/docs/ums/utils/const.html @@ -0,0 +1,295 @@ + + + + + + + + + ums.utils.const API documentation + + + + + + + + + +
+
+

+ums.utils.const

+ +

This file contains shared constants. +See the content ...

+
+ + + + + +
 1# Agenten Plattform
+ 2#
+ 3# (c) 2024 Magnus Bender
+ 4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+ 5# 	Universitaet Hamburg
+ 6# 	https://www.chai.uni-hamburg.de/~bender
+ 7#  
+ 8# source code released under the terms of GNU Public License Version 3
+ 9# https://www.gnu.org/licenses/gpl-3.0.txt
+10
+11"""
+12	This file contains shared constants.
+13	See the content ...
+14"""
+15
+16import os
+17
+18BASE_PATH = '/ums-agent'
+19SHARE_PATH = os.path.join(BASE_PATH, 'share')
+
+ + +
+
+
+ BASE_PATH = +'/ums-agent' + + +
+ + + + +
+
+
+ SHARE_PATH = +'/ums-agent/share' + + +
+ + + + +
+
+ + \ No newline at end of file diff --git a/docs/ums/utils/types.html b/docs/ums/utils/types.html new file mode 100644 index 0000000..1e1b725 --- /dev/null +++ b/docs/ums/utils/types.html @@ -0,0 +1,1696 @@ + + + + + + + + + ums.utils.types API documentation + + + + + + + + + +
+
+

+ums.utils.types

+ +

This represents the basic types used to interact with the management. +The types are implemented using pydantic. +It provides validation, allow JSON serialization and works well with FastAPI which is used internally for the http request between the agents and the management.

+ +

Example

+ +
+
        ex = AgentMessage(
+                id="ex1",
+                riddle={
+                        "context":"Example 1",
+                        "question":"Get the name of the person."
+                },
+                data=[
+                        RiddleData(
+                                type=RiddleDataType.TEXT,
+                                file_plain="./cv.txt"
+                        )
+                ]
+        )
+        ex.status.extract.required = False
+
+
+ +
+
        {
+                "id": "ex1",
+                "sub_ids": [],
+                "riddle": {
+                        "context": "Example 1",
+                        "question": "Get the name of the person.",
+                        "solutions_before": []
+                },
+                "solution": null,
+                "data": [
+                        {
+                                "type": "text",
+                                "file_plain": "/ums-agent/share/cv.txt",
+                                "file_extracted": null
+                        }
+                ],
+                "status": {
+                        "extract": {
+                                "required": false,
+                                "finished": false
+                        },
+                        "solve": {
+                                "required": true,
+                                "finished": false
+                        },
+                        "validate": {
+                                "required": true,
+                                "finished": false
+                        },
+                        "trial": 0,
+                        "solved": false
+                }
+        }
+
+
+ +
+
        ex.solution = RiddleSolution(
+                solution="Otto",
+                explanation="Written in line 6 after 'Name:'"
+        )
+
+
+ +
+
        {
+                ...
+                "solution": {
+                        "solution": "Otto",
+                        "explanation": "Written in line 6 after 'Name:'",
+                        "used_data": [],
+                        "accepted": false,
+                        "review": null
+                },
+                ...
+        }
+
+
+
+ + + + + +
  1# Agenten Plattform
+  2#
+  3# (c) 2024 Magnus Bender
+  4# 	Institute of Humanities-Centered Artificial Intelligence (CHAI)
+  5# 	Universitaet Hamburg
+  6# 	https://www.chai.uni-hamburg.de/~bender
+  7#  
+  8# source code released under the terms of GNU Public License Version 3
+  9# https://www.gnu.org/licenses/gpl-3.0.txt
+ 10
+ 11"""
+ 12	This represents the basic types used to interact with the management.
+ 13	The types are implemented using [pydantic](https://docs.pydantic.dev/).
+ 14	It provides validation, allow JSON serialization and works well with [FastAPI](https://fastapi.tiangolo.com/) which is used internally for the http request between the agents and the management.
+ 15
+ 16	### Example
+ 17
+ 18	```python
+ 19		ex = AgentMessage(
+ 20			id="ex1",
+ 21			riddle={
+ 22				"context":"Example 1",
+ 23				"question":"Get the name of the person."
+ 24			},
+ 25			data=[
+ 26				RiddleData(
+ 27					type=RiddleDataType.TEXT,
+ 28					file_plain="./cv.txt"
+ 29				)
+ 30			]
+ 31		)
+ 32		ex.status.extract.required = False
+ 33	```
+ 34	```json
+ 35		{
+ 36			"id": "ex1",
+ 37			"sub_ids": [],
+ 38			"riddle": {
+ 39				"context": "Example 1",
+ 40				"question": "Get the name of the person.",
+ 41				"solutions_before": []
+ 42			},
+ 43			"solution": null,
+ 44			"data": [
+ 45				{
+ 46					"type": "text",
+ 47					"file_plain": "/ums-agent/share/cv.txt",
+ 48					"file_extracted": null
+ 49				}
+ 50			],
+ 51			"status": {
+ 52				"extract": {
+ 53					"required": false,
+ 54					"finished": false
+ 55				},
+ 56				"solve": {
+ 57					"required": true,
+ 58					"finished": false
+ 59				},
+ 60				"validate": {
+ 61					"required": true,
+ 62					"finished": false
+ 63				},
+ 64				"trial": 0,
+ 65				"solved": false
+ 66			}
+ 67		}
+ 68	```
+ 69	```python
+ 70		ex.solution = RiddleSolution(
+ 71			solution="Otto",
+ 72			explanation="Written in line 6 after 'Name:'"
+ 73		)
+ 74	```
+ 75	```json
+ 76		{
+ 77			...
+ 78			"solution": {
+ 79				"solution": "Otto",
+ 80				"explanation": "Written in line 6 after 'Name:'",
+ 81				"used_data": [],
+ 82				"accepted": false,
+ 83				"review": null
+ 84			},
+ 85			...
+ 86		}
+ 87	```
+ 88
+ 89"""
+ 90
+ 91import os
+ 92
+ 93from enum import Enum
+ 94
+ 95from typing import List
+ 96from typing_extensions import Annotated
+ 97
+ 98from pydantic import BaseModel
+ 99from pydantic.functional_validators import AfterValidator
+100
+101from ums.utils.const import SHARE_PATH
+102
+103class RiddleInformation(BaseModel):
+104	"""
+105		This is the basic class used as superclass for all message and infos
+106		about a riddle.
+107	"""
+108
+109class RiddleDataType(Enum):
+110	"""
+111		Enum for the three types of data used in a riddle.
+112	"""
+113	
+114	TEXT = "text"
+115	IMAGE = "image"
+116	AUDIO = "audio"
+117
+118def _check_data_file(file_name:str) -> str:
+119	if not file_name.startswith('/'):
+120		file_name = os.path.join(SHARE_PATH, file_name)
+121	
+122	assert file_name.startswith(SHARE_PATH), "The data file needs to be in {}!".format(SHARE_PATH)
+123
+124	file_name = os.path.realpath(file_name, strict=False)
+125
+126	assert os.path.isfile(file_name), "The data file {} does not exist!".format(file_name)
+127	
+128	return file_name
+129
+130class RiddleData(RiddleInformation):
+131	"""
+132		A data item to be used to solve the riddle
+133	"""
+134
+135	type: RiddleDataType
+136	"""
+137		The type of the data item.
+138	"""
+139
+140	file_plain: Annotated[str, AfterValidator(_check_data_file)] 
+141	"""
+142		The plain file (as path to file system) without any processing.
+143
+144		The path will be validated and must start with `SHARE_PATH` (or be relative to `SHARE_PATH`).
+145		The file must exist.
+146	"""
+147
+148	file_extracted: Annotated[str, AfterValidator(_check_data_file)] | None = None
+149	"""
+150		The processed files (as path to file system), i.e., a schematic file containing all extracted informations.
+151
+152		The path will be validated and must start with `SHARE_PATH` (or be relative to `SHARE_PATH`).
+153		The file must exist.
+154	"""
+155
+156class RiddleSolution(RiddleInformation):
+157	"""
+158		A solution of a riddle.
+159	"""
+160
+161	solution: str
+162	"""
+163		The textual value of the solution.
+164	"""
+165
+166	explanation: str
+167	"""
+168		An explanation of the solution.
+169	"""
+170
+171	used_data: List[RiddleData] = []
+172	"""
+173		The data items used to create the solution (optional).
+174	"""
+175
+176	accepted : bool = False
+177	"""
+178		If the solution is accepted by validator/ gatekeeper.
+179	"""
+180
+181	review: str | None = None
+182	"""
+183		A review of the solution (if None: not tried to validate)
+184	"""
+185
+186class Riddle(RiddleInformation):
+187	"""
+188		The riddle (the task description and possibly a solution)
+189	"""
+190	
+191	context: str
+192	"""
+193		The context of the riddle (as textual string).
+194	"""
+195
+196	question: str
+197	"""
+198		The actual main question of the riddle (as textual string).
+199	"""
+200
+201	solutions_before: List[RiddleSolution] = []
+202	"""
+203		If already tried to solve this riddle before, the (not accepted) solutions are stored here
+204	"""
+205
+206class RiddleSubStatus(RiddleInformation):
+207	"""
+208		The sub status for each possible step a riddle may go though.
+209	"""
+210	
+211	required: bool = True
+212	"""
+213		Is this step required (i.e., requested)
+214	"""
+215
+216	finished: bool = False
+217	"""
+218		Was this step already executed.
+219	"""
+220
+221class RiddleStatus(RiddleInformation):
+222	"""
+223		The status of a riddle, will be mostly changed by Management when the riddle is sent to different agents while solving it.
+224	"""
+225	
+226	extract: RiddleSubStatus = RiddleSubStatus()
+227	"""
+228		The first extract step (image, text, audio -> more sematic data)
+229
+230		The `RiddleData` items in `AgentMessage.data` shall have `file_extracted` afterwards. 
+231	"""
+232	
+233	solve: RiddleSubStatus = RiddleSubStatus()
+234	"""
+235		The *main* solving step.
+236
+237		`AgentMessage.solution` shall be an `RiddleSolution` afterwards.
+238	"""
+239
+240	validate: RiddleSubStatus = RiddleSubStatus()
+241	"""
+242		The validation step, i.e., does the gatekeeper accept the solution in `AgentMessage.solution`.
+243	"""
+244
+245	trial: int = 0
+246	"""
+247		A counter for the number of trials.
+248		Each time the gatekeeper does not accept a solution of this riddle, the value is incremented.
+249	"""
+250
+251	solved: bool = False
+252	"""
+253		True, after the gatekeeper accepts the solution at `AgentMessage.solution`
+254	"""
+255
+256class AgentMessage(RiddleInformation):
+257	"""
+258		The basic message, which is sent be the agent and the management.
+259		The objects will be JSON en- and decoded.
+260	"""
+261
+262	id: str
+263	"""
+264		The riddle id, e.g., ``ex1``
+265		This is a unique string and identifies the riddle.
+266	"""
+267
+268	sub_ids: List[str] = []
+269	"""
+270		There might be cases, when an agent decided to split in riddle in multiple *smaller* steps.
+271		Each *sub* riddle will then get its own id (i.e., ``ex1-sub1``) while the sub id is added here as reference.
+272	"""
+273
+274	riddle: Riddle
+275	"""
+276		The riddle to solve.
+277	"""
+278
+279	solution: RiddleSolution | None = None
+280	"""
+281		The solution of the riddle (or empty if no solution available)
+282	"""
+283
+284	data: List[RiddleData] = []
+285	"""
+286		The data to get the solution from.
+287	"""
+288
+289	status: RiddleStatus = RiddleStatus()
+290	"""
+291		The status of the riddle.
+292	"""
+
+ + +
+
+ +
+ + class + RiddleInformation(pydantic.main.BaseModel): + + + +
+ +
104class RiddleInformation(BaseModel):
+105	"""
+106		This is the basic class used as superclass for all message and infos
+107		about a riddle.
+108	"""
+
+ + +

This is the basic class used as superclass for all message and infos +about a riddle.

+
+ + +
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
validate
+
update_forward_refs
+ +
+
+
+
+
+ +
+ + class + RiddleDataType(enum.Enum): + + + +
+ +
110class RiddleDataType(Enum):
+111	"""
+112		Enum for the three types of data used in a riddle.
+113	"""
+114	
+115	TEXT = "text"
+116	IMAGE = "image"
+117	AUDIO = "audio"
+
+ + +

Enum for the three types of data used in a riddle.

+
+ + +
+
+ TEXT = +<RiddleDataType.TEXT: 'text'> + + +
+ + + + +
+
+
+ IMAGE = +<RiddleDataType.IMAGE: 'image'> + + +
+ + + + +
+
+
+ AUDIO = +<RiddleDataType.AUDIO: 'audio'> + + +
+ + + + +
+
+
Inherited Members
+
+
enum.Enum
+
name
+
value
+ +
+
+
+
+
+ +
+ + class + RiddleData(RiddleInformation): + + + +
+ +
131class RiddleData(RiddleInformation):
+132	"""
+133		A data item to be used to solve the riddle
+134	"""
+135
+136	type: RiddleDataType
+137	"""
+138		The type of the data item.
+139	"""
+140
+141	file_plain: Annotated[str, AfterValidator(_check_data_file)] 
+142	"""
+143		The plain file (as path to file system) without any processing.
+144
+145		The path will be validated and must start with `SHARE_PATH` (or be relative to `SHARE_PATH`).
+146		The file must exist.
+147	"""
+148
+149	file_extracted: Annotated[str, AfterValidator(_check_data_file)] | None = None
+150	"""
+151		The processed files (as path to file system), i.e., a schematic file containing all extracted informations.
+152
+153		The path will be validated and must start with `SHARE_PATH` (or be relative to `SHARE_PATH`).
+154		The file must exist.
+155	"""
+
+ + +

A data item to be used to solve the riddle

+
+ + +
+
+ type: RiddleDataType + + +
+ + +

The type of the data item.

+
+ + +
+
+
+ file_plain: Annotated[str, AfterValidator(func=<function _check_data_file at 0x103514f40>)] + + +
+ + +

The plain file (as path to file system) without any processing.

+ +

The path will be validated and must start with SHARE_PATH (or be relative to SHARE_PATH). +The file must exist.

+
+ + +
+
+
+ file_extracted: Optional[Annotated[str, AfterValidator(func=<function _check_data_file at 0x103514f40>)]] + + +
+ + +

The processed files (as path to file system), i.e., a schematic file containing all extracted informations.

+ +

The path will be validated and must start with SHARE_PATH (or be relative to SHARE_PATH). +The file must exist.

+
+ + +
+
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
validate
+
update_forward_refs
+ +
+
+
+
+
+ +
+ + class + RiddleSolution(RiddleInformation): + + + +
+ +
157class RiddleSolution(RiddleInformation):
+158	"""
+159		A solution of a riddle.
+160	"""
+161
+162	solution: str
+163	"""
+164		The textual value of the solution.
+165	"""
+166
+167	explanation: str
+168	"""
+169		An explanation of the solution.
+170	"""
+171
+172	used_data: List[RiddleData] = []
+173	"""
+174		The data items used to create the solution (optional).
+175	"""
+176
+177	accepted : bool = False
+178	"""
+179		If the solution is accepted by validator/ gatekeeper.
+180	"""
+181
+182	review: str | None = None
+183	"""
+184		A review of the solution (if None: not tried to validate)
+185	"""
+
+ + +

A solution of a riddle.

+
+ + +
+
+ solution: str + + +
+ + +

The textual value of the solution.

+
+ + +
+
+
+ explanation: str + + +
+ + +

An explanation of the solution.

+
+ + +
+
+
+ used_data: List[RiddleData] + + +
+ + +

The data items used to create the solution (optional).

+
+ + +
+
+
+ accepted: bool + + +
+ + +

If the solution is accepted by validator/ gatekeeper.

+
+ + +
+
+
+ review: str | None + + +
+ + +

A review of the solution (if None: not tried to validate)

+
+ + +
+
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
validate
+
update_forward_refs
+ +
+
+
+
+
+ +
+ + class + Riddle(RiddleInformation): + + + +
+ +
187class Riddle(RiddleInformation):
+188	"""
+189		The riddle (the task description and possibly a solution)
+190	"""
+191	
+192	context: str
+193	"""
+194		The context of the riddle (as textual string).
+195	"""
+196
+197	question: str
+198	"""
+199		The actual main question of the riddle (as textual string).
+200	"""
+201
+202	solutions_before: List[RiddleSolution] = []
+203	"""
+204		If already tried to solve this riddle before, the (not accepted) solutions are stored here
+205	"""
+
+ + +

The riddle (the task description and possibly a solution)

+
+ + +
+
+ context: str + + +
+ + +

The context of the riddle (as textual string).

+
+ + +
+
+
+ question: str + + +
+ + +

The actual main question of the riddle (as textual string).

+
+ + +
+
+
+ solutions_before: List[RiddleSolution] + + +
+ + +

If already tried to solve this riddle before, the (not accepted) solutions are stored here

+
+ + +
+
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
validate
+
update_forward_refs
+ +
+
+
+
+
+ +
+ + class + RiddleSubStatus(RiddleInformation): + + + +
+ +
207class RiddleSubStatus(RiddleInformation):
+208	"""
+209		The sub status for each possible step a riddle may go though.
+210	"""
+211	
+212	required: bool = True
+213	"""
+214		Is this step required (i.e., requested)
+215	"""
+216
+217	finished: bool = False
+218	"""
+219		Was this step already executed.
+220	"""
+
+ + +

The sub status for each possible step a riddle may go though.

+
+ + +
+
+ required: bool + + +
+ + +

Is this step required (i.e., requested)

+
+ + +
+
+
+ finished: bool + + +
+ + +

Was this step already executed.

+
+ + +
+
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
validate
+
update_forward_refs
+ +
+
+
+
+
+ +
+ + class + RiddleStatus(RiddleInformation): + + + +
+ +
222class RiddleStatus(RiddleInformation):
+223	"""
+224		The status of a riddle, will be mostly changed by Management when the riddle is sent to different agents while solving it.
+225	"""
+226	
+227	extract: RiddleSubStatus = RiddleSubStatus()
+228	"""
+229		The first extract step (image, text, audio -> more sematic data)
+230
+231		The `RiddleData` items in `AgentMessage.data` shall have `file_extracted` afterwards. 
+232	"""
+233	
+234	solve: RiddleSubStatus = RiddleSubStatus()
+235	"""
+236		The *main* solving step.
+237
+238		`AgentMessage.solution` shall be an `RiddleSolution` afterwards.
+239	"""
+240
+241	validate: RiddleSubStatus = RiddleSubStatus()
+242	"""
+243		The validation step, i.e., does the gatekeeper accept the solution in `AgentMessage.solution`.
+244	"""
+245
+246	trial: int = 0
+247	"""
+248		A counter for the number of trials.
+249		Each time the gatekeeper does not accept a solution of this riddle, the value is incremented.
+250	"""
+251
+252	solved: bool = False
+253	"""
+254		True, after the gatekeeper accepts the solution at `AgentMessage.solution`
+255	"""
+
+ + +

The status of a riddle, will be mostly changed by Management when the riddle is sent to different agents while solving it.

+
+ + +
+
+ extract: RiddleSubStatus + + +
+ + +

The first extract step (image, text, audio -> more sematic data)

+ +

The RiddleData items in AgentMessage.data shall have file_extracted afterwards.

+
+ + +
+
+
+ solve: RiddleSubStatus + + +
+ + +

The main solving step.

+ +

AgentMessage.solution shall be an RiddleSolution afterwards.

+
+ + +
+
+ +
+
@classmethod
+
@typing_extensions.deprecated('The `validate` method is deprecated; use `model_validate` instead.', category=None)
+ + def + validate(cls, value: Any) -> Self: + + + +
+ +
1383    @classmethod
+1384    @typing_extensions.deprecated('The `validate` method is deprecated; use `model_validate` instead.', category=None)
+1385    def validate(cls, value: Any) -> Self:  # noqa: D102
+1386        warnings.warn(
+1387            'The `validate` method is deprecated; use `model_validate` instead.', category=PydanticDeprecatedSince20
+1388        )
+1389        return cls.model_validate(value)
+
+ + +

The validation step, i.e., does the gatekeeper accept the solution in AgentMessage.solution.

+
+ + +
+
+
+ trial: int + + +
+ + +

A counter for the number of trials. +Each time the gatekeeper does not accept a solution of this riddle, the value is incremented.

+
+ + +
+
+
+ solved: bool + + +
+ + +

True, after the gatekeeper accepts the solution at AgentMessage.solution

+
+ + +
+
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
update_forward_refs
+ +
+
+
+
+
+ +
+ + class + AgentMessage(RiddleInformation): + + + +
+ +
257class AgentMessage(RiddleInformation):
+258	"""
+259		The basic message, which is sent be the agent and the management.
+260		The objects will be JSON en- and decoded.
+261	"""
+262
+263	id: str
+264	"""
+265		The riddle id, e.g., ``ex1``
+266		This is a unique string and identifies the riddle.
+267	"""
+268
+269	sub_ids: List[str] = []
+270	"""
+271		There might be cases, when an agent decided to split in riddle in multiple *smaller* steps.
+272		Each *sub* riddle will then get its own id (i.e., ``ex1-sub1``) while the sub id is added here as reference.
+273	"""
+274
+275	riddle: Riddle
+276	"""
+277		The riddle to solve.
+278	"""
+279
+280	solution: RiddleSolution | None = None
+281	"""
+282		The solution of the riddle (or empty if no solution available)
+283	"""
+284
+285	data: List[RiddleData] = []
+286	"""
+287		The data to get the solution from.
+288	"""
+289
+290	status: RiddleStatus = RiddleStatus()
+291	"""
+292		The status of the riddle.
+293	"""
+
+ + +

The basic message, which is sent be the agent and the management. +The objects will be JSON en- and decoded.

+
+ + +
+
+ id: str + + +
+ + +

The riddle id, e.g., ex1 +This is a unique string and identifies the riddle.

+
+ + +
+
+
+ sub_ids: List[str] + + +
+ + +

There might be cases, when an agent decided to split in riddle in multiple smaller steps. +Each sub riddle will then get its own id (i.e., ex1-sub1) while the sub id is added here as reference.

+
+ + +
+
+
+ riddle: Riddle + + +
+ + +

The riddle to solve.

+
+ + +
+
+
+ solution: RiddleSolution | None + + +
+ + +

The solution of the riddle (or empty if no solution available)

+
+ + +
+
+
+ data: List[RiddleData] + + +
+ + +

The data to get the solution from.

+
+ + +
+
+
+ status: RiddleStatus + + +
+ + +

The status of the riddle.

+
+ + +
+
+
Inherited Members
+
+
pydantic.main.BaseModel
+
BaseModel
+
model_extra
+
model_fields_set
+
model_construct
+
model_copy
+
model_dump
+
model_dump_json
+
model_json_schema
+
model_parametrized_name
+
model_post_init
+
model_rebuild
+
model_validate
+
model_validate_json
+
model_validate_strings
+
dict
+
json
+
parse_obj
+
parse_raw
+
parse_file
+
from_orm
+
construct
+
copy
+
schema
+
schema_json
+
validate
+
update_forward_refs
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/push-images.sh b/push-images.sh index 2cc7bdd..dbb615f 100755 --- a/push-images.sh +++ b/push-images.sh @@ -1,5 +1,15 @@ #/bin/bash +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + # https://stackoverflow.com/a/4774063 SCRIPTPATH="$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)" diff --git a/ums/__cli__.py b/ums/__cli__.py index e69de29..bc35628 100644 --- a/ums/__cli__.py +++ b/ums/__cli__.py @@ -0,0 +1,9 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt \ No newline at end of file diff --git a/ums/__init__.py b/ums/__init__.py index e69de29..bc35628 100644 --- a/ums/__init__.py +++ b/ums/__init__.py @@ -0,0 +1,9 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt \ No newline at end of file diff --git a/ums/agent/__init__.py b/ums/agent/__init__.py index e69de29..bc35628 100644 --- a/ums/agent/__init__.py +++ b/ums/agent/__init__.py @@ -0,0 +1,9 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt \ No newline at end of file diff --git a/ums/management/__init__.py b/ums/management/__init__.py index e69de29..bc35628 100644 --- a/ums/management/__init__.py +++ b/ums/management/__init__.py @@ -0,0 +1,9 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt \ No newline at end of file diff --git a/ums/management/main.py b/ums/management/main.py index 2cecfe2..26d8490 100644 --- a/ums/management/main.py +++ b/ums/management/main.py @@ -1,12 +1,20 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt # TEST ONLY -from ums.messages import Message, Riddle +from ums.utils import AgentMessage, RiddleData, RiddleDataType, RiddleSolution from typing import Union from fastapi import FastAPI -from fastapi.responses import PlainTextResponse app = FastAPI() @@ -14,13 +22,29 @@ app = FastAPI() def read_root(): return {"Hello": "World"} -@app.get("/test", response_class=PlainTextResponse) +@app.get("/test") def huhu(): - a = Message( - id="hu", riddle="lala" + ex = AgentMessage( + id="ex1", + riddle={ + "context":"Example 1", + "question":"Get the name of the person." + }, + data=[ + RiddleData( + type=RiddleDataType.TEXT, + file_plain="./cv.txt" + ) + ] + ) + ex.status.extract.required = False + + ex.solution = RiddleSolution( + solution="Otto", + explanation="Written in line 6 after 'Name:'" ) - a.status.steps["extract"] = False - return a.to_json() + + return ex @app.get("/items/{item_id}") diff --git a/ums/messages/__init__.py b/ums/messages/__init__.py deleted file mode 100644 index a9ed38a..0000000 --- a/ums/messages/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ - -from ums.messages.message import Message -from ums.messages.specials import Riddle, RiddleData, RiddleStatus, Solution - diff --git a/ums/messages/message.py b/ums/messages/message.py deleted file mode 100644 index 73697f0..0000000 --- a/ums/messages/message.py +++ /dev/null @@ -1,102 +0,0 @@ -import importlib, json - -from typing import Any, List - -class Message(): - - _USM_AGENT_CODE = "CZDygPSF2HJTLKVIqys1"; - - _ATTRIBUTES = { # * in name -> optional - "id" : str, - "sub_ids*" : List[str], - "riddle" : "ums.messages.specials.Riddle", - "solution*" : "ums.messages.specials.Solution", - "data" : "ums.messages.specials.RiddleData", - "status" : "ums.messages.specials.RiddleStatus" - } - - _DEFAULTS = { - "data" : ("ums.messages.specials", "RiddleData"), - "status" : ("ums.messages.specials", "RiddleStatus") - } - - def __init__(self, *args, **kwargs): - if len(args) > 0: - self.__dict__['items'] = list(args) - elif len(kwargs) > 0: - self.__dict__['items'] = kwargs - else: - self.__dict__['items'] = self._DEFAULTS - - self._check_attr() - - def __getattr__(self, name: str) -> Any: - if 'items' in self.__dict__ and isinstance(self.items, dict) and name in self.items: - return self.items[name] - - def __setattr__(self, name: str, value: Any) -> None: - if hasattr(self, name): - setattr(self, name, value) - elif isinstance(self.items, dict): - self.items[name] = value - self._check_attr() - - def _check_attr(self): - if isinstance(self._ATTRIBUTES, list): - assert isinstance(self.items, list), \ - "{} content must be a list and not a dict!".format(self.__class__.__name__) - - elif isinstance(self._ATTRIBUTES, dict): - assert isinstance(self.items, dict), \ - "{} content must be a dict and not a list!".format(self.__class__.__name__) - - for k,v in self._ATTRIBUTES.items(): - if not k.endswith('*') and not k in self.items: - if k in self._DEFAULTS: - if isinstance(self._DEFAULTS[k], tuple): - def_class = getattr( - importlib.import_module(self._DEFAULTS[k][0]), - self._DEFAULTS[k][1] - ) - self.items[k] = def_class() - else: - self.items[k] = self._DEFAULTS[k] - else: - raise ValueError("Message requires field {}, but not set (and no default)!".format(k)) - - if isinstance(v, str): - # a class name - pass - - elif isinstance(v, dict): - # a sub structure - pass - - else: # a type - pass - - - def _to_json(self): - return self.items - - def to_json(self) -> str: - return json.dumps( - self._to_json(), - indent=2, - cls=JSONEncodeHelper, - sort_keys=True - ) - - - def from_json(json:str): - # TODO - - pass - -class JSONEncodeHelper(json.JSONEncoder): - def default(self, o): - - if isinstance(o, Message): - return o._to_json() - - return super().default(o) \ No newline at end of file diff --git a/ums/messages/specials.py b/ums/messages/specials.py deleted file mode 100644 index b9b7e47..0000000 --- a/ums/messages/specials.py +++ /dev/null @@ -1,99 +0,0 @@ -import os - -from typing import Generator, Tuple, IO - -from ums.messages.message import Message - -class Riddle(Message): - - _ATTRIBUTES = { # * in name -> optional - "context" : str, - "question" : str, - "solution_before*" : str, - "review_before*" : str - } - _DEFAULTS = {} - - -class RiddleStatus(Message): - - _ATTRIBUTES = { # * in name -> optional - "steps" : { - "extract" : bool, - "solve" : bool, - "validate" : bool - }, - "trial" : int, - "solved" : bool - } - _DEFAULTS = { - "steps" : { - "extract" : True, - "solve" : True, - "validate" : True - }, - "trial" : 0, - "solved" : False - } - -class RiddleData(Message): - - TYPE_TEXT = "text" - TYPE_IMAGE = "image" - TYPE_AUDIO = "audio" - - DATA_TYPES = [ - TYPE_IMAGE, - TYPE_TEXT, - TYPE_AUDIO - ] - - FILE_BASEPATH = '/ums-agenten/share' - - _ATTRIBUTES = [ - { - "type" : str, - "file_plain" : str, - "file_extracted*" : str - } - ] - _DEFAULTS = [] - - def iterate(self, - yield_plain:bool=True, yield_extracted:bool=True, - file_pointer:bool=False - ) -> Generator[Tuple[str, str|IO|None, str|IO|None], None, None]: - for item in self.items: - if item["type"] in self.DATA_TYPES: - - f_e = None - if yield_extracted and "file_extracted" in item: - f_e_p = os.path.join(self.FILE_BASEPATH, item["file_extracted"]) - if os.path.isfile(f_e_p): - f_e = open(f_e_p, 'r') if file_pointer else f_e_p - - f_p = None - if yield_plain: - f_p_p = os.path.join(self.FILE_BASEPATH, item["file_plain"]) - if os.path.isfile(f_p_p): - f_e = open(f_p_p, 'r') if file_pointer else f_p_p - - yield item["type"], f_p, f_e - - if hasattr(f_p, 'close'): - f_p.close() - if hasattr(f_e, 'close'): - f_e.close() - - def __iter__(self): - yield from self.iterate() - -class Solution(Message): - - _ATTRIBUTES = { - "solution" : str, - "explanation" : str, - "used_data*" : "ums.messages.specials.RiddleData", - "review*" : str - } - _DEFAULTS = {} diff --git a/ums/utils/__init__.py b/ums/utils/__init__.py new file mode 100644 index 0000000..980f90b --- /dev/null +++ b/ums/utils/__init__.py @@ -0,0 +1,21 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + +from ums.utils.types import ( + RiddleInformation, + AgentMessage, + Riddle, + RiddleSolution, + RiddleData, + RiddleDataType, + RiddleStatus +) + +from ums.utils.const import * \ No newline at end of file diff --git a/ums/utils/const.py b/ums/utils/const.py new file mode 100644 index 0000000..185dcc2 --- /dev/null +++ b/ums/utils/const.py @@ -0,0 +1,19 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + +""" + This file contains shared constants. + See the content ... +""" + +import os + +BASE_PATH = '/ums-agent' +SHARE_PATH = os.path.join(BASE_PATH, 'share') \ No newline at end of file diff --git a/ums/utils/types.py b/ums/utils/types.py new file mode 100644 index 0000000..63704f4 --- /dev/null +++ b/ums/utils/types.py @@ -0,0 +1,292 @@ +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + +""" + This represents the basic types used to interact with the management. + The types are implemented using [pydantic](https://docs.pydantic.dev/). + It provides validation, allow JSON serialization and works well with [FastAPI](https://fastapi.tiangolo.com/) which is used internally for the http request between the agents and the management. + + ### Example + + ```python + ex = AgentMessage( + id="ex1", + riddle={ + "context":"Example 1", + "question":"Get the name of the person." + }, + data=[ + RiddleData( + type=RiddleDataType.TEXT, + file_plain="./cv.txt" + ) + ] + ) + ex.status.extract.required = False + ``` + ```json + { + "id": "ex1", + "sub_ids": [], + "riddle": { + "context": "Example 1", + "question": "Get the name of the person.", + "solutions_before": [] + }, + "solution": null, + "data": [ + { + "type": "text", + "file_plain": "/ums-agent/share/cv.txt", + "file_extracted": null + } + ], + "status": { + "extract": { + "required": false, + "finished": false + }, + "solve": { + "required": true, + "finished": false + }, + "validate": { + "required": true, + "finished": false + }, + "trial": 0, + "solved": false + } + } + ``` + ```python + ex.solution = RiddleSolution( + solution="Otto", + explanation="Written in line 6 after 'Name:'" + ) + ``` + ```json + { + ... + "solution": { + "solution": "Otto", + "explanation": "Written in line 6 after 'Name:'", + "used_data": [], + "accepted": false, + "review": null + }, + ... + } + ``` + +""" + +import os + +from enum import Enum + +from typing import List +from typing_extensions import Annotated + +from pydantic import BaseModel +from pydantic.functional_validators import AfterValidator + +from ums.utils.const import SHARE_PATH + +class RiddleInformation(BaseModel): + """ + This is the basic class used as superclass for all message and infos + about a riddle. + """ + +class RiddleDataType(Enum): + """ + Enum for the three types of data used in a riddle. + """ + + TEXT = "text" + IMAGE = "image" + AUDIO = "audio" + +def _check_data_file(file_name:str) -> str: + if not file_name.startswith('/'): + file_name = os.path.join(SHARE_PATH, file_name) + + assert file_name.startswith(SHARE_PATH), "The data file needs to be in {}!".format(SHARE_PATH) + + file_name = os.path.realpath(file_name, strict=False) + + assert os.path.isfile(file_name), "The data file {} does not exist!".format(file_name) + + return file_name + +class RiddleData(RiddleInformation): + """ + A data item to be used to solve the riddle + """ + + type: RiddleDataType + """ + The type of the data item. + """ + + file_plain: Annotated[str, AfterValidator(_check_data_file)] + """ + The plain file (as path to file system) without any processing. + + The path will be validated and must start with `SHARE_PATH` (or be relative to `SHARE_PATH`). + The file must exist. + """ + + file_extracted: Annotated[str, AfterValidator(_check_data_file)] | None = None + """ + The processed files (as path to file system), i.e., a schematic file containing all extracted informations. + + The path will be validated and must start with `SHARE_PATH` (or be relative to `SHARE_PATH`). + The file must exist. + """ + +class RiddleSolution(RiddleInformation): + """ + A solution of a riddle. + """ + + solution: str + """ + The textual value of the solution. + """ + + explanation: str + """ + An explanation of the solution. + """ + + used_data: List[RiddleData] = [] + """ + The data items used to create the solution (optional). + """ + + accepted : bool = False + """ + If the solution is accepted by validator/ gatekeeper. + """ + + review: str | None = None + """ + A review of the solution (if None: not tried to validate) + """ + +class Riddle(RiddleInformation): + """ + The riddle (the task description and possibly a solution) + """ + + context: str + """ + The context of the riddle (as textual string). + """ + + question: str + """ + The actual main question of the riddle (as textual string). + """ + + solutions_before: List[RiddleSolution] = [] + """ + If already tried to solve this riddle before, the (not accepted) solutions are stored here + """ + +class RiddleSubStatus(RiddleInformation): + """ + The sub status for each possible step a riddle may go though. + """ + + required: bool = True + """ + Is this step required (i.e., requested) + """ + + finished: bool = False + """ + Was this step already executed. + """ + +class RiddleStatus(RiddleInformation): + """ + The status of a riddle, will be mostly changed by Management when the riddle is sent to different agents while solving it. + """ + + extract: RiddleSubStatus = RiddleSubStatus() + """ + The first extract step (image, text, audio -> more sematic data) + + The `RiddleData` items in `AgentMessage.data` shall have `file_extracted` afterwards. + """ + + solve: RiddleSubStatus = RiddleSubStatus() + """ + The *main* solving step. + + `AgentMessage.solution` shall be an `RiddleSolution` afterwards. + """ + + validate: RiddleSubStatus = RiddleSubStatus() + """ + The validation step, i.e., does the gatekeeper accept the solution in `AgentMessage.solution`. + """ + + trial: int = 0 + """ + A counter for the number of trials. + Each time the gatekeeper does not accept a solution of this riddle, the value is incremented. + """ + + solved: bool = False + """ + True, after the gatekeeper accepts the solution at `AgentMessage.solution` + """ + +class AgentMessage(RiddleInformation): + """ + The basic message, which is sent be the agent and the management. + The objects will be JSON en- and decoded. + """ + + id: str + """ + The riddle id, e.g., ``ex1`` + This is a unique string and identifies the riddle. + """ + + sub_ids: List[str] = [] + """ + There might be cases, when an agent decided to split in riddle in multiple *smaller* steps. + Each *sub* riddle will then get its own id (i.e., ``ex1-sub1``) while the sub id is added here as reference. + """ + + riddle: Riddle + """ + The riddle to solve. + """ + + solution: RiddleSolution | None = None + """ + The solution of the riddle (or empty if no solution available) + """ + + data: List[RiddleData] = [] + """ + The data to get the solution from. + """ + + status: RiddleStatus = RiddleStatus() + """ + The status of the riddle. + """ \ No newline at end of file diff --git a/utils/doc-template/module.html.jinja2 b/utils/doc-template/module.html.jinja2 new file mode 100644 index 0000000..f0d8d21 --- /dev/null +++ b/utils/doc-template/module.html.jinja2 @@ -0,0 +1,20 @@ +{# Agenten Plattform + # + # (c) 2024 Magnus Bender + # Institute of Humanities-Centered Artificial Intelligence (CHAI) + # Universitaet Hamburg + # https://www.chai.uni-hamburg.de/~bender + # + # source code released under the terms of GNU Public License Version 3 + # https://www.gnu.org/licenses/gpl-3.0.txt +#} + + +{% extends "default/module.html.jinja2" %} + +{% macro is_public(doc) %} + {% if doc.name in ("model_config", "model_fields", "model_computed_fields") %} + {% else %} + {{ default_is_public(doc) }} + {% endif %} +{% endmacro %} \ No newline at end of file diff --git a/vars.sh b/vars.sh index 8271083..78fe87d 100755 --- a/vars.sh +++ b/vars.sh @@ -1,5 +1,15 @@ #/bin/bash +# Agenten Plattform +# +# (c) 2024 Magnus Bender +# Institute of Humanities-Centered Artificial Intelligence (CHAI) +# Universitaet Hamburg +# https://www.chai.uni-hamburg.de/~bender +# +# source code released under the terms of GNU Public License Version 3 +# https://www.gnu.org/licenses/gpl-3.0.txt + IMAGE_REGISTRY="git.chai.uni-hamburg.de" IMAGE_OWNER="ums-agenten" IMAGE_NAME_AGENT="base-agent"