export OPENAI_API_KEY="your-key"
python -c "
from praisonaiagents import Agent
def add(a: int, b: int) -> int:
'''Add two numbers.'''
return a + b
agent = Agent(
name='Math',
instructions='Use tools.',
llm='gpt-4o-mini',
tools=[add],
output="silent"
)
response = agent.chat('What is 5+3?')
assert '8' in response, f'Expected 8 in response: {response}'
print('Tool test: OK')
"