Skip to content

Commit

Permalink
Merge pull request #9 from Strong-AI-Lab/JVNAUTOSCI-101-create-von-co…
Browse files Browse the repository at this point in the history
…ncept-of-effort-units-build-informat

JVNAUTOSCI-101-create-von-concept-of-effort-units-build-informat
ysu132 authored Aug 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents fbb27cd + 411696d commit 6d48786
Showing 2 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/vonlib/effort_units.py
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 not shown.

0 comments on commit 6d48786

Please sign in to comment.