Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Prompttrail Examples

In this directory, we collect examples of prompttrail.

provider

In this directory, we give examples of how to use prompttrail as a thin wrapper around LLMs. If you want just to use LLMs, see these examples.

agent

In this directory, we give examples of how to use prompttrail to create agents. If you want to use complex logic, function calling and so on, see these examples.

  • agent/fermi_problem.py
    • This shows how to use prompttrail to create an simple agent which take multiple turns, call functions, and so on.
    • You can also see how you can mock the APIs for testing.
  • agent/weather_forecast.py
    • This shows how to use prompttrail to create an agent which use function calling feature of prompttrail.

dogfooding

In this directory, we give examples of how to use prompttrail as we actually use in this directory.