Skip to content

Instantly share code, notes, and snippets.

@maximilien
Created February 20, 2025 19:30
Show Gist options
  • Save maximilien/8ff90a7669966acbb7f92cd6cbb5b1bd to your computer and use it in GitHub Desktop.
Save maximilien/8ff90a7669966acbb7f92cd6cbb5b1bd to your computer and use it in GitHub Desktop.
Simple BeeAI Python example - Bay Area AI Meetup - San Francisco, CA - 02/20/2025
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maximilien
Copy link
Author

Ideally we should get to something like this for the code

from beeai.tools import OpenMeteoTool
from beeai.framework import ChatModel, BeeAgent

llm = ChatModel.for_name(“ollama…”)
agent = BeeAgent(llm=llm, tools=[OpenMeteoTool()], memory=UnconstrainedMemory())
agent.run("What…”).observe(lambda result: print(result.text))

@ajbozarth
Copy link

After talking to Tomas about this a bit I opened i-am-bee/beeai-framework#385 and https://github.com/orgs/i-am-bee/discussions/386 to track these feature requests

@maximilien
Copy link
Author

👍 @ajbozarth

@ajbozarth
Copy link

Also worth noting that the first one is an issue because Tomas already had it on his mind as an improvement to bring up this week, whereas the second ones a discussion because he's worried that it will be a large API change needed on both implementations and thus should be discussed before committing to implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment