@@ -7,7 +7,7 @@ Nebula provides a conversational interface to interact with blockchain data and
77- [ Base URL] ( #base-url )
88- [ Authentication] ( #authentication )
99- [ Sessions] ( #sessions )
10- - [ Context Filtering ] ( #context-filtering )
10+ - [ Context Filters ] ( #context-filtering )
1111- [ Execute Configuration] ( #execute-configuration )
1212- [ Response Handling] ( #response-handling )
1313- [ API Endpoints] ( #api-endpoints )
@@ -57,22 +57,24 @@ Sessions maintain conversation threads with the AI and can be:
5757
5858Sessions persist your conversation history and custom configurations for blockchain data and thirdweb tools interactions.
5959
60- ## Context Filtering
60+ ## Context Filters
6161
6262Control what blockchain data informs AI responses through context filtering:
6363
6464``` json
6565{
6666 "context_filter" : {
67- "chain_ids" : [1 ], // Ethereum mainnet
68- "contract_addresses" : [" 0x..." ] // Target contract address
67+ "chain_ids" : [1 ], // comma delimited list of chain ID's
68+ "contract_addresses" : [" 0x..." ], // Comma delimited list of contract addresses
69+ "wallet_addresses" : [" 0x..." ] // Comma delimited list of wallet addresses
6970 }
7071}
7172```
7273
7374Benefits:
7475- Filter by blockchain networks using chain IDs
7576- Target specific contract addresses
77+ - Target specific wallet addresses
7678- Control context scope for relevant responses
7779- Optimize token usage and response relevance
7880
@@ -108,13 +110,7 @@ When `stream: false`, the API returns a single JSON response:
108110 "result" : {
109111 "message" : " The last 5 blocks on polygon are..." ,
110112 "session_id" : " abc" ,
111- "message_id" : " 1234" ,
112- "created_at" : " 2024-01-01T00:00:00Z" ,
113- "usage" : {
114- "prompt_tokens" : 10 ,
115- "completion_tokens" : 15 ,
116- "total_tokens" : 25
117- }
113+ "message_id" : " 1234"
118114 }
119115}
120116```
@@ -224,7 +220,8 @@ POST /chat
224220 "stream" : true ,
225221 "context_filter" : {
226222 "chain_ids" : [137 ],
227- "contract_addresses" : [" 0x.." ]
223+ "contract_addresses" : [" 0x..." ],
224+ "wallet_addresses" : [" 0x..." ]
228225 },
229226 "execute_config" : {
230227 "mode" : " client" ,
0 commit comments