Skip to content

Commit

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

See [a sample session output](sample_session.txt).

## Notebook usage

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

## Command-line usage

Install with:
```
pip install functionsmith
Expand All @@ -36,6 +44,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 +66,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 b6b0960

Please sign in to comment.