Replies: 5 comments
-
no, the api expects the input specification (the yaml here is just for readability) and we can add helper classes and utils in SDKs for creating them |
Beta Was this translation helpful? Give feedback.
-
Some additional ideas for the future:
|
Beta Was this translation helpful? Give feedback.
-
example: when a pull request is merged, analyze the PR, write a song about it, convert it into audio and then upload to discord. comments:
name: make-a-song-about-it
description: ...
input_schema:
type: object
parameters:
repo: # type string...
pr_number: # type int
discord_channel: # type int
# These tools need to be added to the agent
tools_available:
- fetch_pr
- generate_song_audio
- send_to_discord
# ideas
# 1. let's allow negative indices so inputs[-1] will refer to the previous input
# 2. let's make `$` an alias for outputs[-1]
main:
- tool: fetch_pr
arguments:
repo: $.repo
id: $.pr_number
# let's say this returns {title: ..., description: ..., created_at, author, files_changed, comments, diffs}
# and we want the first 120 chars of each diff
- evaluate:
first_chars: $.diffs.map(d, d.content[:120])
- prompt:
- role: system
content: |
You are {{agent.name}}, {{agent.description}}. Here you are going to take a look at the following files and write a song about it:
{% for file in outputs[-2].files_changed %}
- {{file}}: {{$.first_chars[loop.index]}}
{% endfor %}
Start!
settings: # this is going to inherit the default_settings from the agent
temperature: 1.0
- tool: generate_song_audio
arguments:
song: $.messages.choice[0].content
voice: "ladygaga"
- tool: send_to_discord
arguments:
channel: inputs[0].discord_channel
file:
url: $.generated_audio.download_url
|
Beta Was this translation helpful? Give feedback.
-
Proposal #1 Can we use just an array for input arguments? for exmaple:
Because it's gonna be something like |
Beta Was this translation helpful? Give feedback.
-
How will tool calls be implemented? I'd like to see the rough PoC workflow |
Beta Was this translation helpful? Give feedback.
-
Sharing the tasks specification, semantic and examples here. Comments and suggestions welcome.
Idea
A lot of problems can be broken down into a series of steps with varying degree of involvement of an AI model.
Proposed abstraction:
Simplified example
Pseudocode
Planned features
Open questions
yield
step, does it return back to the call origin or not?Beta Was this translation helpful? Give feedback.
All reactions