You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Send a message to Nebula AI and get a response. This can be used for blockchain queries, contract interactions, and access to thirdweb tools."
@@ -19,39 +21,24 @@ def chat(
19
21
str,
20
22
"The natural language message to process. Can be a question about blockchain data, a request to execute a transaction, or any web3-related query.",
21
23
],
22
-
session_id: Annotated[
23
-
str|None,
24
-
"Optional session ID to maintain conversation context. If provided, this message will be part of an ongoing conversation; if omitted, a new session is created.",
25
-
] =None,
26
-
context: Annotated[
27
-
dict[str, Any] |None,
28
-
"Contextual information for processing the request, including: chainIds (array of chain identifiers) and walletAddress (user's wallet for transaction signing). Example: {'chainIds': ['1', '137'], 'walletAddress': '0x123...'}",
description="Retrieve all available Nebula AI sessions for the authenticated account. Returns an array of session metadata including IDs, titles, and creation timestamps, allowing you to find and reference existing conversations."
43
-
)
44
33
deflist_sessions(self) ->dict[str, Any]:
45
34
returnself._get("session/list")
46
35
47
-
@tool(
48
-
description="Fetch complete information about a specific Nebula AI session, including conversation history, context settings, and metadata. Use this to examine past interactions or resume an existing conversation thread."
49
-
)
50
36
defget_session(
51
37
self,
52
-
session_id: Annotated[
53
-
str,
54
-
"Unique identifier for the target session. This UUID references a specific conversation history in the Nebula system.",
0 commit comments