Skip to content

Lyricore is the foundational runtime engine designed to orchestrate and execute AI Agents with precision and harmony.

Notifications You must be signed in to change notification settings

lyric-project/lyricore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyricore

A foundational runtime engine designed to orchestrate and execute AI Agents with precision and harmony.

Installation

pip install lyricore

Usage

Create an actor system:

import lyricore as lc

system = lc.ActorSystem("simple_example")
await system.start()

Define an actor:

class Counter:
    def __init__(self):
        self.value = 0
    async def add(self, x):
        self.value += x
        return self.value
    async def current(self):
        return self.value

Create an actor instance:

counter_ref = await system.spawn(Counter, "counter")

Send a message and await the response:

result = await counter_ref.add(5)
print(result)  # Output: 5

Send a message without the response:

result = await counter_ref.add.tell(5)
print(result)  # Output: None

About

Lyricore is the foundational runtime engine designed to orchestrate and execute AI Agents with precision and harmony.

Resources

Stars

Watchers

Forks

Packages

No packages published