├── .env.example ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── examples ├── chatbot_session.py ├── cli.md ├── fastapi_stream.py ├── intro_structured.py ├── llm_judge.py ├── model_grading_example.csv ├── multiple_agents.py ├── sessions.py ├── structured_responses.py └── tool_calling.py ├── poetry.lock ├── pyproject.toml ├── simple_ai_agents ├── __init__.py ├── chat_agent.py ├── chat_session.py ├── cli.py ├── external.py ├── models.py ├── prompts.py └── utils.py └── tests ├── __init__.py ├── input ├── chat_session.csv └── chat_session.json ├── test_chat_agent.py ├── test_chat_session.py ├── test_tool_calling.py └── test_utils.py /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/README.md -------------------------------------------------------------------------------- /examples/chatbot_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/chatbot_session.py -------------------------------------------------------------------------------- /examples/cli.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/cli.md -------------------------------------------------------------------------------- /examples/fastapi_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/fastapi_stream.py -------------------------------------------------------------------------------- /examples/intro_structured.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/intro_structured.py -------------------------------------------------------------------------------- /examples/llm_judge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/llm_judge.py -------------------------------------------------------------------------------- /examples/model_grading_example.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/model_grading_example.csv -------------------------------------------------------------------------------- /examples/multiple_agents.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/multiple_agents.py -------------------------------------------------------------------------------- /examples/sessions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/sessions.py -------------------------------------------------------------------------------- /examples/structured_responses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/structured_responses.py -------------------------------------------------------------------------------- /examples/tool_calling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/examples/tool_calling.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/pyproject.toml -------------------------------------------------------------------------------- /simple_ai_agents/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /simple_ai_agents/chat_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/simple_ai_agents/chat_agent.py -------------------------------------------------------------------------------- /simple_ai_agents/chat_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/simple_ai_agents/chat_session.py -------------------------------------------------------------------------------- /simple_ai_agents/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/simple_ai_agents/cli.py -------------------------------------------------------------------------------- /simple_ai_agents/external.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/simple_ai_agents/external.py -------------------------------------------------------------------------------- /simple_ai_agents/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/simple_ai_agents/models.py -------------------------------------------------------------------------------- /simple_ai_agents/prompts.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | SYSTEM_PROMPT = "You are a helpful assistant." 4 | -------------------------------------------------------------------------------- /simple_ai_agents/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/simple_ai_agents/utils.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/input/chat_session.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/tests/input/chat_session.csv -------------------------------------------------------------------------------- /tests/input/chat_session.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/tests/input/chat_session.json -------------------------------------------------------------------------------- /tests/test_chat_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/tests/test_chat_agent.py -------------------------------------------------------------------------------- /tests/test_chat_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/tests/test_chat_session.py -------------------------------------------------------------------------------- /tests/test_tool_calling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/tests/test_tool_calling.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timlrx/simple-ai-agents/HEAD/tests/test_utils.py --------------------------------------------------------------------------------