mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-13 05:01:35 -10:00
12 lines
488 B
Python
12 lines
488 B
Python
from praisonaiagents import Agent, PraisonAIAgents
|
|
import getpass
|
|
from langchain_azure_dynamic_sessions import SessionsPythonREPLTool
|
|
|
|
POOL_MANAGEMENT_ENDPOINT = getpass.getpass()
|
|
|
|
coder_agent = Agent(instructions="""word = "strawberry"
|
|
count = word.count("r")
|
|
print(f"There are {count}'R's in the word 'Strawberry'")""", tools=[SessionsPythonREPLTool])
|
|
|
|
agents = PraisonAIAgents(agents=[coder_agent])
|
|
agents.start() |