Skip to content

kshipra-fetch/toolhouseai-uagents-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Code Generator Agent

This is a code generator agent built using Toolhouse.ai and the Fetch.ai uagents. It returns code based on user's query.

Example input

query="Generate a Python code to print Fibonacci series upto 20"

Example output

def fibonacci_series(limit):
    fib_sequence = []
    a, b = 0, 1
    while a <= limit:
        fib_sequence.append(a)
        a, b = b, a + b
    return fib_sequence

# Print Fibonacci series up to 20
print(fibonacci_series(20))
  1. Install the necessary packages:

    pip install toolhouse requests uagents
  2. Run the agent:

    python code-generator-agent.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages