The simplest way to interact with Shannon is through its REST API:
curl -X POST http://localhost:8080/api/v1/tasks \ -H "Content-Type: application/json" \ -d '{ "query": "Analyze the sentiment of: Shannon makes AI agents simple and reliable!" }'
Shannon auto-selects execution modes based on task complexity. You can override this by passing the mode parameter (simple, standard, complex, supervisor) in your task submission.
session_id = "my-conversation-123"# First messagehandle1 = client.submit_task( query="What is the capital of France?", session_id=session_id)# Follow-up message (Shannon remembers context)handle2 = client.submit_task( query="What's the population?", session_id=session_id)# Shannon knows you're asking about Paris's population
For a graphical view of tasks and sessions, use the Shannon Desktop Application (Tauri-based client). See Desktop Application for installation and usage details.
Shannon automatically selects the appropriate execution mode and cognitive strategy based on query complexity. You don’t need to specify these parameters.
client.submit_task( query="Compare the pros and cons of microservices vs monolithic architecture", context={ "domain": "software_architecture", "depth": "comprehensive", "include_examples": True })