RFC: Output for New Task #102
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Output for New Task
Summary
POST /ap/v1/agent/taskshould allow anoutputMotivation
I struggle to understand how people would be using
POST /ap/v1/agent/task, which accepts an optional (!!)inputbut allows for nooutput. Can you imagine calling somebody on the phone and the person at the other end picks up, but doesn't say anything? You generally want to hear "Hi, thanks for calling XYZ, if you're calling about ..." - or atleast "Hello..."An agent could:
task.inputand provide a generic welcome/instructional prompt.task.inputand select a specialist agent to handle the task/steps, and provide a welcome prompt from the specialist agenttask.outputas a title for the task?Agent Builders Benefit
Agents would be able to provide a welcome message, guiding the user on what to say first.
This allows for greater flexibility & more options:
User initiates conversation in `POST /agent/task/id/step`
maybe sets `"is_last": true`?
Design Proposal
Alternatives Considered
task.inputif the Agent can not respond withtask.output.Compatibility
AutoGPT seems to be sending the same
messagetocreateTask()andsendChatMessage()in chat_view.dart#L126:In ForgeAgent they suggest that in
create_taskyou might just log thetask.input.Questions and Discussion Topics
Add open questions or options you require feedback on from the community.