Skip to content

Commit

Permalink
update gh example
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Nov 24, 2024
1 parent d8e97ab commit 9595217
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cookbook/gh_util/custom_assistant.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# /// script
# dependencies = ["marvin", "gh-util"]
# ///

from gh_util.api import functions # pip install gh-util
from marvin.beta.applications import Application
from pydantic import BaseModel, Field
Expand All @@ -13,8 +17,6 @@ class Memory(BaseModel):
tools=[f for f in functions if f.__name__ != "run_git_command"],
)

# $ marvin assistant register cookbook/gh_util/custom_assistant.py:octocat

# > what's the latest release of prefecthq/marvin?

# see https://github.com/PrefectHQ/marvin/pull/875
if __name__ == "__main__":
# uv run cookbook/gh_util/custom_assistant.py
octocat.chat("what's the latest release of prefecthq/marvin?")

0 comments on commit 9595217

Please sign in to comment.