Skip to content

Commit

Permalink
Functionsmith notebook demo (general-purpose)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 718178440
  • Loading branch information
The Google Earth Engine Community Authors authored and copybara-github committed Jan 22, 2025
1 parent 2e5c0e9 commit 5b66abc
Show file tree
Hide file tree
Showing 2 changed files with 635 additions and 2 deletions.
11 changes: 9 additions & 2 deletions experimental/functionsmith/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ function calling.
USING THIS AGENT IS UNSAFE. It directly runs LLM-produced code, and thus
should only be used for demonstration purposes.

## Notebook usage

Open the [demo notebook](functionsmith.ipynb).

## Command-line usage

Install with:
```
pip install functionsmith
Expand All @@ -36,6 +42,8 @@ wget https://raw.githubusercontent.com/davidmegginson/ourairports-data/refs/head
functionsmith_cli
```

## Implementation

This agent uses dynamic function calling, which means that instead of
relying on a fixed set of tools predefined in the agent
[in normal LLM function calling](https://ai.google.dev/gemini-api/docs/function-calling),
Expand All @@ -56,8 +64,7 @@ locally.

The functions are not saved permanently, though this feature can be added.

TODO(simonf): add a notebook version of the general-purpose agent,
as well as an Earth Engine-specific notebook agent.
TODO(simonf): add an Earth Engine-specific notebook agent.

## Attribution

Expand Down
Loading

0 comments on commit 5b66abc

Please sign in to comment.