Code Examples 🔗

This is a demo:

import os
from signalwire_agents import AgentBase

agent = AgentBase(name="franklin")
agent.prompt_add_section("role", "You are Franklin, the web search bot.")
agent.prompt_add_section("instructions", 
                         bullets=["Ask the user what they want to search for on the web"])
agent.add_language("English", "en-US", "rime.spore")
agent.add_skill("web_search", {
    "api_key": os.getenv('GOOGLE_SEARCH_API_KEY'),
    "search_engine_id": os.getenv('GOOGLE_SEARCH_ENGINE_ID')
})

if __name__ == "__main__":
    agent.run()