AI-Human Interaction¶
This example demonstrates how AI agents can interact with humans:
- Using agent capabilities for human interaction
- Setting up a human agent in the pool
- Allowing AI to request human input when needed
How It Works¶
- We set up two agents:
- An AI assistant with
can_ask_agents
capability -
A human agent using the special "human" provider type
-
When the AI assistant encounters a question it can't answer:
- It recognizes the need for human input
- Uses its
can_ask_agents
capability to interact with the human agent -
Incorporates the human's response into its answer
-
The conversation might look like this:
This demonstrates how to:
- Enable AI-human collaboration
- Control when AI can request human input
- Integrate human knowledge into AI responses