Files

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()