searchindex.js
17.8 KB
Search.setIndex({"docnames": ["index", "modules", "run", "run_api", "salesgpt"], "filenames": ["index.rst", "modules.rst", "run.rst", "run_api.rst", "salesgpt.rst"], "titles": ["Welcome to SalesGPT\u2019s documentation!", "SalesGPT", "run module", "run_api module", "salesgpt package"], "terms": {"index": 0, "modul": [0, 1], "search": 0, "page": 0, "run": [1, 4], "run_api": 1, "messagelist": [1, 3], "conversation_histori": [1, 3, 4], "human_sai": [1, 3], "model_config": [1, 3], "model_field": [1, 3], "chat_with_sales_ag": [1, 3], "say_hello": [1, 3], "packag": 1, "submodul": 1, "agent": 1, "acal": [1, 4], "acompletion_with_retri": [1, 4], "astep": [1, 4], "company_busi": [1, 4], "company_nam": [1, 4], "company_valu": [1, 4], "conversation_purpos": [1, 4], "conversation_stage_dict": [1, 4], "conversation_stage_id": [1, 4], "conversation_typ": [1, 4], "current_conversation_stag": [1, 4], "determine_conversation_stag": [1, 4], "from_llm": [1, 4], "human_step": [1, 4], "input_kei": [1, 4], "knowledge_bas": [1, 4], "model_nam": [1, 4], "output_kei": [1, 4], "retrieve_conversation_stag": [1, 4], "sales_agent_executor": [1, 4], "sales_conversation_utterance_chain": [1, 4], "salesperson_nam": [1, 4], "salesperson_rol": [1, 4], "seed_ag": [1, 4], "stage_analyzer_chain": [1, 4], "step": [1, 4], "use_tool": [1, 4], "chain": 1, "salesconversationchain": [1, 4], "stageanalyzerchain": [1, 4], "logger": 1, "timefilt": [1, 4], "filter": [1, 4], "time_logg": [1, 4], "parser": 1, "salesconvooutputpars": [1, 4], "ai_prefix": [1, 4], "get_format_instruct": [1, 4], "pars": [1, 4], "verbos": [1, 4], "prompt": 1, "prompts_cn": 1, "salesgptapi": 1, "do": [1, 4], "stage": 1, "templat": 1, "customprompttemplatefortool": [1, 4], "format": [1, 4], "tools_gett": [1, 4], "tool": 1, "get_tool": [1, 4], "setup_knowledge_bas": [1, 4], "version": 1, "content": [0, 1], "class": [3, 4], "list": [3, 4], "str": [3, 4], "base": [3, 4], "basemodel": 3, "classvar": 3, "configdict": 3, "configur": 3, "model": [3, 4], "should": [3, 4], "dictionari": [3, 4], "conform": 3, "pydant": 3, "config": 3, "dict": [3, 4], "fieldinfo": [3, 4], "annot": [3, 4], "requir": [3, 4], "true": [3, 4], "metadata": [3, 4], "about": 3, "field": 3, "defin": 3, "map": [3, 4], "name": [3, 4], "thi": [0, 3, 4], "replac": 3, "__fields__": 3, "from": [3, 4], "v1": 3, "async": [3, 4], "req": 3, "memori": 4, "basememori": 4, "none": 4, "callback": 4, "basecallbackhandl": 4, "basecallbackmanag": 4, "callback_manag": 4, "bool": 4, "tag": 4, "ani": [0, 4], "1": 4, "introduct": 4, "start": 4, "convers": 4, "introduc": 4, "yourself": 4, "your": 4, "compani": 4, "Be": 4, "polit": 4, "respect": 4, "while": 4, "keep": 4, "tone": 4, "profession": 4, "greet": 4, "welcom": 4, "alwai": 4, "clarifi": 4, "reason": 4, "why": 4, "you": 4, "ar": [0, 4], "call": 4, "nonetyp": 4, "agentexecutor": 4, "retrievalqa": 4, "2": 4, "qualif": 4, "qualifi": 4, "prospect": 4, "confirm": 4, "thei": 4, "right": 4, "person": 4, "talk": 4, "regard": 4, "product": 4, "servic": 4, "ensur": 4, "have": [0, 4], "author": 4, "make": 4, "purchas": 4, "decis": 4, "3": 4, "valu": 4, "proposit": 4, "briefli": 4, "explain": 4, "how": 4, "can": 4, "benefit": 4, "focu": 4, "uniqu": 4, "sell": 4, "point": 4, "set": 4, "apart": 4, "competitor": 4, "4": 4, "need": 4, "analysi": 4, "ask": 4, "open": 4, "end": 4, "question": 4, "uncov": 4, "": 4, "pain": 4, "listen": 4, "carefulli": 4, "respons": 4, "take": 4, "note": 4, "5": 4, "solut": 4, "present": 4, "address": 4, "6": 4, "object": 4, "handl": 4, "mai": 4, "prepar": 4, "provid": 4, "evid": 4, "testimoni": 4, "support": 4, "claim": 4, "7": 4, "close": 4, "sale": 4, "propos": 4, "next": 4, "could": 4, "demo": 4, "trial": 4, "meet": 4, "maker": 4, "summar": 4, "what": 4, "ha": 4, "been": 4, "discuss": 4, "reiter": 4, "8": 4, "It": 4, "time": 4, "i": 4, "noth": 4, "els": 4, "said": 4, "gpt": 4, "turbo": 4, "0613": 4, "fals": 4, "ted": 4, "lasso": 4, "busi": 4, "develop": 4, "repres": 4, "sleep": 4, "haven": 4, "premium": 4, "mattress": 4, "custom": 4, "most": 4, "comfort": 4, "experi": 4, "possibl": 4, "we": [0, 4], "offer": 4, "rang": 4, "high": 4, "qualiti": 4, "pillow": 4, "bed": 4, "accessori": 4, "design": 4, "our": 4, "mission": 4, "help": 4, "peopl": 4, "achiev": 4, "better": 4, "night": 4, "them": 4, "best": 4, "believ": 4, "essenti": 4, "overal": 4, "health": 4, "well": 4, "being": 4, "commit": 4, "optim": 4, "except": 4, "find": 4, "out": 4, "whether": 4, "look": 4, "via": 4, "bui": 4, "premier": 4, "control": 4, "arg": 4, "kwarg": 4, "asynchron": 4, "execut": 4, "input": 4, "singl": 4, "expect": 4, "onli": 4, "one": 4, "param": 4, "contain": 4, "all": 4, "specifi": 4, "return_only_output": 4, "return": 4, "output": 4, "If": 4, "new": 4, "kei": 4, "gener": 4, "both": 4, "default": 4, "us": 4, "These": 4, "addit": 4, "pass": 4, "dure": 4, "construct": 4, "runtim": 4, "propag": 4, "other": 4, "string": 4, "option": 4, "associ": 4, "include_run_info": 4, "includ": 4, "info": 4, "A": 4, "llm": 4, "tenac": 4, "retri": 4, "complet": 4, "stream": 4, "manipul": 4, "chunk": 4, "downstream": 4, "applic": 4, "classmethod": 4, "chatlitellm": 4, "initi": 4, "human_input": 4, "properti": 4, "baseprompttempl": 4, "runnabl": 4, "promptvalu": 4, "basemessag": 4, "text": 4, "output_pars": 4, "basellmoutputpars": 4, "return_final_onli": 4, "llm_kwarg": 4, "llmchain": 4, "utter": 4, "use_custom_prompt": 4, "custom_prompt": 4, "an": 4, "ai": 4, "me": 4, "pencil": 4, "get": 4, "analyz": 4, "which": 4, "move": 4, "record": 4, "determin": 4, "log": 4, "otherwis": 4, "deem": 4, "appropri": 4, "modifi": 4, "place": 4, "func": 4, "decor": 4, "function": 4, "taken": 4, "agentoutputpars": 4, "instruct": 4, "agentact": 4, "agentfinish": 4, "action": 4, "finish": 4, "config_path": 4, "max_num_turn": 4, "int": 4, "10": 4, "input_vari": 4, "input_typ": 4, "baseoutputpars": 4, "partial_vari": 4, "callabl": 4, "stringprompttempl": 4, "argument": 4, "exampl": 4, "variable1": 4, "foo": 4, "product_catalog": 4, "assum": 4, "catalog": 4, "simpli": 4, "inform": 4, "red": [], "just": 0, "begun": 0, "build": 0, "websit": 0, "still": 0, "activ": 0, "work": 0, "suggest": 0, "improv": 0, "readabl": 0, "desir": 0, "pleas": 0, "contact": 0, "chemik": 0, "bit": 0, "github": 0}, "objects": {"": [[3, 0, 0, "-", "run_api"], [4, 0, 0, "-", "salesgpt"]], "run_api": [[3, 1, 1, "", "MessageList"], [3, 3, 1, "", "chat_with_sales_agent"], [3, 3, 1, "", "say_hello"]], "run_api.MessageList": [[3, 2, 1, "", "conversation_history"], [3, 2, 1, "", "human_say"], [3, 2, 1, "", "model_config"], [3, 2, 1, "", "model_fields"]], "salesgpt": [[4, 0, 0, "-", "agents"], [4, 0, 0, "-", "chains"], [4, 0, 0, "-", "logger"], [4, 0, 0, "-", "parsers"], [4, 0, 0, "-", "prompts"], [4, 0, 0, "-", "prompts_cn"], [4, 0, 0, "-", "salesgptapi"], [4, 0, 0, "-", "stages"], [4, 0, 0, "-", "templates"], [4, 0, 0, "-", "tools"], [4, 0, 0, "-", "version"]], "salesgpt.agents": [[4, 1, 1, "", "SalesGPT"]], "salesgpt.agents.SalesGPT": [[4, 4, 1, "", "acall"], [4, 4, 1, "", "acompletion_with_retry"], [4, 4, 1, "", "astep"], [4, 2, 1, "", "company_business"], [4, 2, 1, "", "company_name"], [4, 2, 1, "", "company_values"], [4, 2, 1, "", "conversation_history"], [4, 2, 1, "", "conversation_purpose"], [4, 2, 1, "", "conversation_stage_dict"], [4, 2, 1, "", "conversation_stage_id"], [4, 2, 1, "", "conversation_type"], [4, 2, 1, "", "current_conversation_stage"], [4, 4, 1, "", "determine_conversation_stage"], [4, 4, 1, "", "from_llm"], [4, 4, 1, "", "human_step"], [4, 5, 1, "", "input_keys"], [4, 2, 1, "", "knowledge_base"], [4, 2, 1, "", "model_name"], [4, 5, 1, "", "output_keys"], [4, 4, 1, "", "retrieve_conversation_stage"], [4, 2, 1, "", "sales_agent_executor"], [4, 2, 1, "", "sales_conversation_utterance_chain"], [4, 2, 1, "", "salesperson_name"], [4, 2, 1, "", "salesperson_role"], [4, 4, 1, "", "seed_agent"], [4, 2, 1, "", "stage_analyzer_chain"], [4, 4, 1, "", "step"], [4, 2, 1, "", "use_tools"]], "salesgpt.chains": [[4, 1, 1, "", "SalesConversationChain"], [4, 1, 1, "", "StageAnalyzerChain"]], "salesgpt.chains.SalesConversationChain": [[4, 4, 1, "", "from_llm"]], "salesgpt.chains.StageAnalyzerChain": [[4, 4, 1, "", "from_llm"]], "salesgpt.logger": [[4, 1, 1, "", "TimeFilter"], [4, 3, 1, "", "time_logger"]], "salesgpt.logger.TimeFilter": [[4, 4, 1, "", "filter"]], "salesgpt.parsers": [[4, 1, 1, "", "SalesConvoOutputParser"]], "salesgpt.parsers.SalesConvoOutputParser": [[4, 2, 1, "", "ai_prefix"], [4, 4, 1, "", "get_format_instructions"], [4, 4, 1, "", "parse"], [4, 2, 1, "", "verbose"]], "salesgpt.salesgptapi": [[4, 1, 1, "", "SalesGPTAPI"]], "salesgpt.salesgptapi.SalesGPTAPI": [[4, 2, 1, "", "USE_TOOLS"], [4, 4, 1, "", "do"]], "salesgpt.templates": [[4, 1, 1, "", "CustomPromptTemplateForTools"]], "salesgpt.templates.CustomPromptTemplateForTools": [[4, 4, 1, "", "format"], [4, 2, 1, "", "template"], [4, 2, 1, "", "tools_getter"]], "salesgpt.tools": [[4, 3, 1, "", "get_tools"], [4, 3, 1, "", "setup_knowledge_base"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:function", "4": "py:method", "5": "py:property"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "function", "Python function"], "4": ["py", "method", "Python method"], "5": ["py", "property", "Python property"]}, "titleterms": {"welcom": 0, "salesgpt": [0, 1, 4], "": 0, "document": 0, "indic": 0, "tabl": 0, "run": 2, "modul": [2, 3, 4], "run_api": 3, "packag": 4, "submodul": 4, "agent": 4, "chain": 4, "logger": 4, "parser": 4, "prompt": 4, "prompts_cn": 4, "salesgptapi": 4, "stage": 4, "templat": 4, "tool": 4, "version": 4, "content": 4}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"SalesGPT": [[1, "salesgpt"]], "run_api module": [[3, "module-run_api"]], "salesgpt package": [[4, "salesgpt-package"]], "Submodules": [[4, "submodules"]], "salesgpt.agents module": [[4, "module-salesgpt.agents"]], "salesgpt.chains module": [[4, "module-salesgpt.chains"]], "salesgpt.logger module": [[4, "module-salesgpt.logger"]], "salesgpt.parsers module": [[4, "module-salesgpt.parsers"]], "salesgpt.prompts module": [[4, "module-salesgpt.prompts"]], "salesgpt.prompts_cn module": [[4, "module-salesgpt.prompts_cn"]], "salesgpt.salesgptapi module": [[4, "module-salesgpt.salesgptapi"]], "salesgpt.stages module": [[4, "module-salesgpt.stages"]], "salesgpt.templates module": [[4, "module-salesgpt.templates"]], "salesgpt.tools module": [[4, "module-salesgpt.tools"]], "salesgpt.version module": [[4, "module-salesgpt.version"]], "Module contents": [[4, "module-salesgpt"]], "Welcome to SalesGPT\u2019s documentation!": [[0, "welcome-to-salesgpt-s-documentation"]], "Indices and tables": [[0, "indices-and-tables"]], "run module": [[2, "run-module"]]}, "indexentries": {"messagelist (class in run_api)": [[3, "run_api.MessageList"]], "chat_with_sales_agent() (in module run_api)": [[3, "run_api.chat_with_sales_agent"]], "conversation_history (run_api.messagelist attribute)": [[3, "run_api.MessageList.conversation_history"]], "human_say (run_api.messagelist attribute)": [[3, "run_api.MessageList.human_say"]], "model_config (run_api.messagelist attribute)": [[3, "run_api.MessageList.model_config"]], "model_fields (run_api.messagelist attribute)": [[3, "run_api.MessageList.model_fields"]], "module": [[3, "module-run_api"], [4, "module-salesgpt"], [4, "module-salesgpt.agents"], [4, "module-salesgpt.chains"], [4, "module-salesgpt.logger"], [4, "module-salesgpt.parsers"], [4, "module-salesgpt.prompts"], [4, "module-salesgpt.prompts_cn"], [4, "module-salesgpt.salesgptapi"], [4, "module-salesgpt.stages"], [4, "module-salesgpt.templates"], [4, "module-salesgpt.tools"], [4, "module-salesgpt.version"]], "run_api": [[3, "module-run_api"]], "say_hello() (in module run_api)": [[3, "run_api.say_hello"]], "customprompttemplatefortools (class in salesgpt.templates)": [[4, "salesgpt.templates.CustomPromptTemplateForTools"]], "salesconversationchain (class in salesgpt.chains)": [[4, "salesgpt.chains.SalesConversationChain"]], "salesconvooutputparser (class in salesgpt.parsers)": [[4, "salesgpt.parsers.SalesConvoOutputParser"]], "salesgpt (class in salesgpt.agents)": [[4, "salesgpt.agents.SalesGPT"]], "salesgptapi (class in salesgpt.salesgptapi)": [[4, "salesgpt.salesgptapi.SalesGPTAPI"]], "stageanalyzerchain (class in salesgpt.chains)": [[4, "salesgpt.chains.StageAnalyzerChain"]], "timefilter (class in salesgpt.logger)": [[4, "salesgpt.logger.TimeFilter"]], "use_tools (salesgpt.salesgptapi.salesgptapi attribute)": [[4, "salesgpt.salesgptapi.SalesGPTAPI.USE_TOOLS"]], "acall() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.acall"]], "acompletion_with_retry() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.acompletion_with_retry"]], "ai_prefix (salesgpt.parsers.salesconvooutputparser attribute)": [[4, "salesgpt.parsers.SalesConvoOutputParser.ai_prefix"]], "astep() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.astep"]], "company_business (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.company_business"]], "company_name (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.company_name"]], "company_values (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.company_values"]], "conversation_history (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.conversation_history"]], "conversation_purpose (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.conversation_purpose"]], "conversation_stage_dict (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.conversation_stage_dict"]], "conversation_stage_id (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.conversation_stage_id"]], "conversation_type (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.conversation_type"]], "current_conversation_stage (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.current_conversation_stage"]], "determine_conversation_stage() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.determine_conversation_stage"]], "do() (salesgpt.salesgptapi.salesgptapi method)": [[4, "salesgpt.salesgptapi.SalesGPTAPI.do"]], "filter() (salesgpt.logger.timefilter method)": [[4, "salesgpt.logger.TimeFilter.filter"]], "format() (salesgpt.templates.customprompttemplatefortools method)": [[4, "salesgpt.templates.CustomPromptTemplateForTools.format"]], "from_llm() (salesgpt.agents.salesgpt class method)": [[4, "salesgpt.agents.SalesGPT.from_llm"]], "from_llm() (salesgpt.chains.salesconversationchain class method)": [[4, "salesgpt.chains.SalesConversationChain.from_llm"]], "from_llm() (salesgpt.chains.stageanalyzerchain class method)": [[4, "salesgpt.chains.StageAnalyzerChain.from_llm"]], "get_format_instructions() (salesgpt.parsers.salesconvooutputparser method)": [[4, "salesgpt.parsers.SalesConvoOutputParser.get_format_instructions"]], "get_tools() (in module salesgpt.tools)": [[4, "salesgpt.tools.get_tools"]], "human_step() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.human_step"]], "input_keys (salesgpt.agents.salesgpt property)": [[4, "salesgpt.agents.SalesGPT.input_keys"]], "knowledge_base (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.knowledge_base"]], "model_name (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.model_name"]], "output_keys (salesgpt.agents.salesgpt property)": [[4, "salesgpt.agents.SalesGPT.output_keys"]], "parse() (salesgpt.parsers.salesconvooutputparser method)": [[4, "salesgpt.parsers.SalesConvoOutputParser.parse"]], "retrieve_conversation_stage() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.retrieve_conversation_stage"]], "sales_agent_executor (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.sales_agent_executor"]], "sales_conversation_utterance_chain (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.sales_conversation_utterance_chain"]], "salesgpt": [[4, "module-salesgpt"]], "salesgpt.agents": [[4, "module-salesgpt.agents"]], "salesgpt.chains": [[4, "module-salesgpt.chains"]], "salesgpt.logger": [[4, "module-salesgpt.logger"]], "salesgpt.parsers": [[4, "module-salesgpt.parsers"]], "salesgpt.prompts": [[4, "module-salesgpt.prompts"]], "salesgpt.prompts_cn": [[4, "module-salesgpt.prompts_cn"]], "salesgpt.salesgptapi": [[4, "module-salesgpt.salesgptapi"]], "salesgpt.stages": [[4, "module-salesgpt.stages"]], "salesgpt.templates": [[4, "module-salesgpt.templates"]], "salesgpt.tools": [[4, "module-salesgpt.tools"]], "salesgpt.version": [[4, "module-salesgpt.version"]], "salesperson_name (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.salesperson_name"]], "salesperson_role (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.salesperson_role"]], "seed_agent() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.seed_agent"]], "setup_knowledge_base() (in module salesgpt.tools)": [[4, "salesgpt.tools.setup_knowledge_base"]], "stage_analyzer_chain (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.stage_analyzer_chain"]], "step() (salesgpt.agents.salesgpt method)": [[4, "salesgpt.agents.SalesGPT.step"]], "template (salesgpt.templates.customprompttemplatefortools attribute)": [[4, "salesgpt.templates.CustomPromptTemplateForTools.template"]], "time_logger() (in module salesgpt.logger)": [[4, "salesgpt.logger.time_logger"]], "tools_getter (salesgpt.templates.customprompttemplatefortools attribute)": [[4, "salesgpt.templates.CustomPromptTemplateForTools.tools_getter"]], "use_tools (salesgpt.agents.salesgpt attribute)": [[4, "salesgpt.agents.SalesGPT.use_tools"]], "verbose (salesgpt.parsers.salesconvooutputparser attribute)": [[4, "salesgpt.parsers.SalesConvoOutputParser.verbose"]]}})