File tree Expand file tree Collapse file tree
langgraph_agent_with_cancel/agent
langgraphagent_with_human_in_the_loop/agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ def build_calculator_subgraph():
3939 api_key , url , model_name = get_model_config ()
4040 model = init_chat_model (
4141 model_name ,
42+ model_provider = "openai" ,
4243 api_key = api_key ,
43- api_base = url ,
44+ base_url = url ,
4445 )
4546
4647 tools = [calculate ]
@@ -79,8 +80,9 @@ def build_graph_with_subgraph():
7980 api_key , url , model_name = get_model_config ()
8081 model = init_chat_model (
8182 model_name ,
83+ model_provider = "openai" ,
8284 api_key = api_key ,
83- api_base = url ,
85+ base_url = url ,
8486 )
8587
8688 # Build calculator subgraph
@@ -126,8 +128,9 @@ def build_graph():
126128 api_key , url , model_name = get_model_config ()
127129 model = init_chat_model (
128130 model_name ,
131+ model_provider = "openai" ,
129132 api_key = api_key ,
130- api_base = url ,
133+ base_url = url ,
131134 )
132135
133136 tools = [calculate ]
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ def build_graph():
4444 api_key , url , model_name = get_model_config ()
4545 model = init_chat_model (
4646 model_name ,
47+ model_provider = "openai" ,
4748 api_key = api_key ,
48- api_base = url ,
49+ base_url = url ,
4950 )
5051
5152 tools = [calculate , analyze_data ]
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ def _build_graph():
5353 api_key , url , model_name = get_model_config ()
5454 model = init_chat_model (
5555 model_name ,
56+ model_provider = "openai" ,
5657 api_key = api_key ,
57- api_base = url ,
58+ base_url = url ,
5859 )
5960 tools = [execute_database_operation ]
6061 llm_with_tools = model .bind_tools (tools )
Original file line number Diff line number Diff line change 1010from trpc_agent_sdk .agents import LlmAgent
1111from trpc_agent_sdk .models import LLMModel
1212from trpc_agent_sdk .models import OpenAIModel
13- from trpc_agent_sdk .tools .mem0_tools import SaveMemoryTool
14- from trpc_agent_sdk .tools .mem0_tools import SearchMemoryTool
13+ from trpc_agent_sdk .tools .mem0_tool import SaveMemoryTool
14+ from trpc_agent_sdk .tools .mem0_tool import SearchMemoryTool
1515
1616from .config import get_mem0_platform_config
1717from .config import get_memory_config
You can’t perform that action at this time.
0 commit comments