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

Ability to call tools at End #10

Open
ranjandsingh opened this issue Jun 23, 2023 · 19 comments
Open

Ability to call tools at End #10

ranjandsingh opened this issue Jun 23, 2023 · 19 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ranjandsingh
Copy link

ranjandsingh commented Jun 23, 2023

Any option to use tools on let's say the last stage to save the response or parse relevant information to DB

@ranjandsingh ranjandsingh changed the title Any option to use tools on let's say last stage to save the response or parse relevant information to DB Ability to call tools at End Jun 23, 2023
@filip-michalsky
Copy link
Owner

filip-michalsky commented Jul 1, 2023

@ranjandsingh yes, it's been on the TODO list for a while. I will try to push out as early as I can. Make sure to put this repo on watch mode. If you would be open to contribute, please let me know :)

@Bilal-irfan
Copy link

@filip-michalsky which API or tool you used for cold calling.
when you will update the codebase demo you shared?

@ranjandsingh
Copy link
Author

@filip-michalsky I'm down to add this option but there are few ways we can implement it

  • Adding another stage and calling save on last stage
  • or adding an Agent instead of chain for second chain
  • or even in the post process of the conversation like end conversation and detecting if user intend to save

@filip-michalsky
Copy link
Owner

@Bilal-irfan thanks for the question - I am going to push an example with calling an API I am building which complements SalesGPT agents for cold-calling soon. Will need to start a beta testers list as I can't support high traffic yet. Would love to get your feedback.

@ranjandsingh thanks for your offer to help! Adding tools to the AI Sales Agent toolkit is a high priority item, I just haven't had time to work on it yet. What do you mean by the intent to save?

Rough API sketch (idea, subject to feedback):

  1. User input
  2. Stage analyzer outputs which stage of the sales conversation we are at.
    (optional) - new config, we init the sales agent with a different prompt based on the stage. Right now, the sales agent has a static prompt.
  3. Sales Agent decides what to do. It can look up product information in a knowledge base. It can send an email, or text, it can initiate a phone call, search the internet, and output a response to the user.
  4. Agent Critic - does the output match the stage and does it match the product knowledge base? if not, give feedback and re-try
  5. User output.

@tgbaoo
Copy link

tgbaoo commented Jul 6, 2023

Hi filip @filip-michalsky , really appreciate your work, the only problem of this is turn the sale-gpt become an independent agents - plan and execute (independently from human on decide what to do), from What I see this is just an action agents or a simple chain - from langchain, so i have an idea that we add the conversation analyzer and conversation chain become a part of tools to pass into plan-and-execute agent. So could we start this discuss about my idea and talk about how we implement and try it as a raw version on python?

@Alex-Poon
Copy link

Alex-Poon commented Jul 6, 2023

@filip-michalsky I'm learning how to use tools by adding tools to the Sales Agent. I see in the examples they call initialize_agent which returns an AgentExecutor. Would this work by returning an AgentExecutor from the from_llm method or do I have to create an OpenAI spec to process (https://python.langchain.com/docs/modules/chains/additional/openapi_openai)

@thalex
Copy link

thalex commented Jul 7, 2023

Hi Filip, I am testing your salesgpt code and have a doubt. Where do I add the number to receive the call and do I have to set a call duration time?

@filip-michalsky
Copy link
Owner

@Alex-Poon @thalex @ranjandsingh @Bilal-irfan @tgbaoo Agent example is up, check it out! Will close this issue soon if you don't have any objections.

@ranjandsingh
Copy link
Author

well, this is a good option and value add to the current System love to see it. just one question does it supports multiple tools or just one ?

@filip-michalsky
Copy link
Owner

@ranjandsingh yessir, you can add as many tools as you want, you have to just change the get_tools() function

@filip-michalsky
Copy link
Owner

I guess you have a good point, it's not now easily changeable by the user since it's not configurable from the high-level API.

We can add it as a TODO to allow a user to specify their own tools.

@whitespur
Copy link

Hello, where is the example code of cold calling

@avyaymc
Copy link

avyaymc commented Jul 24, 2023

Does anyone have a working demo of multi-tools? seems to me its very bad at telling the user what tools it has available, any ideas on how to modify the prompt to get that capacity?

@ranjandsingh
Copy link
Author

@avyaymc It's on todo for now you might need to modify the agent code to allow multiple tools currently only accepting one

@filip-michalsky filip-michalsky added the enhancement New feature or request label Aug 2, 2023
@filip-michalsky
Copy link
Owner

@avyaymc adding this to TODO - open for someone to contribute

@filip-michalsky filip-michalsky added the help wanted Extra attention is needed label Aug 2, 2023
@Eran-BA
Copy link

Eran-BA commented Oct 6, 2023

any news?

@tgbaoo
Copy link

tgbaoo commented Oct 11, 2023

Hi, I am seeing that the code is currently not working as an langchain agent with tools on streaming response mode right now? If yes, i am developing some structure for that, hope to contribute to this repo

@tgbaoo
Copy link

tgbaoo commented Oct 11, 2023 via email

@tgbaoo
Copy link

tgbaoo commented Oct 11, 2023

By the way, we also need to test the benchmark of the retrieval document due to specific document's field and also control the way the retrieval come to the prompt to generate the answer by the langchain agent also right? @filip-michalsky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

9 participants