Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Agent.say() method (or similar) #269

Open
jlowin opened this issue Sep 3, 2024 · 0 comments
Open

Add Agent.say() method (or similar) #269

jlowin opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement Enhance an existing feature

Comments

@jlowin
Copy link
Member

jlowin commented Sep 3, 2024

Enhancement Description

Currently, invoking an agent requires all the overhead of creating and completing a task. Sometimes we may want to guide an agent by prompting it with specific information. in this case, it would be great to say something to an agent.

At a minimum, this could add a user message to the flow (which could also be done as a direct flow attribute, but we could record that the specific agent was the intended target of the message, which would otherwise be public). More useful would be to also invoke the agent for one turn to get it to respond and, in doing so, add knowledge to the thread history.

Use Case

No response

Proposed Implementation

import controlflow as cf

agent = cf.Agent("Norbert")
agent.instruct('hello, from now on call me Arthur') # no response
reply = agent.say('hello') # gets a response
@jlowin jlowin added the enhancement Enhance an existing feature label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant