-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #9 from Strong-AI-Lab/JVNAUTOSCI-101-create-von-co…
…ncept-of-effort-units-build-informat JVNAUTOSCI-101-create-von-concept-of-effort-units-build-informat
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from pymongo import MongoClient | ||
|
||
# This file will encapsulate the basic idea of a unit Effort for a Von agent. | ||
# An Effort is a single unit of operation that a Von agent can perform. | ||
# Effort units are stored in a MongoDB database. | ||
# Effort units represent Tasks, Projects, Sub-Tasks, | ||
# and other units of work that a Von agent can perform. | ||
# They can contain other Effort units, and can be assigned to Von agents. | ||
# Types of Effort are described in natural language, and can be used to generate | ||
# code, or work-flows of other effort units. Some effort units can be used to generate | ||
# prompts that will cause LLMs to perform inference, producing or updating intermediate states | ||
# generating outputs, or generating new Effort Units. | ||
|
||
# See paper_recommender/mangodb/crud.py which already defines an idea of Project which | ||
# probably can be used as a basis for this class. | ||
|
||
|
||
class EffortUnit: | ||
|
||
|
||
def init_mongo(): | ||
# Connect to the MongoDB server | ||
client = MongoClient('mongodb://localhost:27017/') | ||
|
||
# Access the database | ||
db = client['your_database_name'] | ||
|
||
# Access a collection within the database | ||
collection = db['your_collection_name'] | ||
|
||
# Perform database operations | ||
# ... | ||
|
||
# Close the connection | ||
client.close() |
Binary file modified
BIN
+0 Bytes
(100%)
tests/test_vonlib/__pycache__/llmconnect_test.cpython-312-pytest-8.2.2.pyc
Binary file not shown.