Skip to content

Commit 31b2af9

Browse files
authored
refactor: use chat agent from game_sdk
1 parent 72bb17f commit 31b2af9

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

plugins/tLedger/examples/example_agent.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
from dotenv import load_dotenv
66
from pathlib import Path
77

8-
import requests
98
from typing_extensions import Dict
109

11-
from chat_agent import ChatAgent
12-
from game_sdk.game.custom_types import Argument, Function, FunctionResultStatus, ChatResponse, FunctionResult
10+
from game_sdk.game.chat_agent import ChatAgent
11+
from game_sdk.game.custom_types import Argument, Function, FunctionResultStatus, FunctionResult
1312

1413
from tledger_plugin_gamesdk.tLedger_plugin import TLedgerPlugin
1514

@@ -173,4 +172,4 @@ def update_agent_state(current_state: dict, function_result: FunctionResult) ->
173172
chat_continue = False
174173
break
175174

176-
print("Chat ended")
175+
print("Chat ended")

0 commit comments

Comments
 (0)