mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-11 03:31:27 -10:00
13 lines
499 B
Python
13 lines
499 B
Python
# praisonai: skip=true
|
|
from praisonaiagents import Agent, AgentTeam
|
|
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 = AgentTeam(agents=[coder_agent])
|
|
agents.start() |