-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput2.txt
More file actions
137 lines (131 loc) · 8.67 KB
/
output2.txt
File metadata and controls
137 lines (131 loc) · 8.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
(mcp-use) MacBook-Pro-van-Filip:mcp-use filipdvoran$ python client_claude.py
🔍 Vytváram MCP sessions...
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 200 OK"
INFO:mcp.client.streamable_http:Negotiated protocol version: 2025-03-26
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 202 Accepted"
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 200 OK"
✅ Vytvorené sessions: ['wordpress_server']
🔧 Server 'wordpress_server' má 22 nástrojov
📋 Token Limits nastavené:
• Max input tokens/call: 20,000
• Max output tokens/call: 1,000
• Max total input/interaction: 60,000
• Max total output/interaction: 5,000
• Max LLM calls/interaction: 5
• Max conversation messages: 3
• Memory cleanup threshold: 80%
• Aggressive cleanup threshold: 90%
• Preemptive cleanup threshold: 3,000 tokenov
• Nuclear cleanup threshold: 10,000 tokenov
🔧 Smart Tool Response Truncation:
• Truncation threshold: 20,000 tokenov
• Max products po skrátení: 30
• Max riadkov po skrátení: 50
• Chars/token ratio: 3.5
🔍 Vytváram Claude LLM...
✅ Claude LLM vytvorený (max_tokens: 1,000)
🔍 Vytváram Smart MCPAgent...
2025-07-18 13:44:39,605 - mcp_use.telemetry.telemetry - INFO - Anonymized telemetry enabled. Set MCP_USE_ANONYMIZED_TELEMETRY=false to disable.
INFO:mcp_use.telemetry.telemetry:Anonymized telemetry enabled. Set MCP_USE_ANONYMIZED_TELEMETRY=false to disable.
✅ Smart MCPAgent vytvorený
🔍 Inicializujem agent...
2025-07-18 13:44:39,605 - mcp_use - INFO - 🚀 Initializing MCP agent and connecting to services...
INFO:mcp_use:🚀 Initializing MCP agent and connecting to services...
2025-07-18 13:44:39,605 - mcp_use - INFO - 🔌 Found 1 existing sessions
INFO:mcp_use:🔌 Found 1 existing sessions
2025-07-18 13:44:39,629 - mcp_use - INFO - 🛠️ Created 24 LangChain tools from client
INFO:mcp_use:🛠️ Created 24 LangChain tools from client
2025-07-18 13:44:39,629 - mcp_use - INFO - 🧰 Found 24 tools across all connectors
INFO:mcp_use:🧰 Found 24 tools across all connectors
2025-07-18 13:44:39,629 - mcp_use - INFO - 🧠 Agent ready with tools: wc_products_search, wc_get_product, wc_get_product_variations, wc_get_product_variation, wc_get_categories, wc_get_tags, wc_analyze_search_intent, wc_intelligent_search, wc_analyze_search_intent_helper, wc_get_product_reviews, wc_get_product_review, wc_get_product_attributes, wc_get_product_attribute, wc_get_attribute_terms, wc_get_shipping_zones, wc_get_shipping_zone, wc_get_shipping_methods, wc_get_tax_classes, wc_get_tax_rates, wc_get_payment_gateways, wc_get_system_status, wc_get_system_tools, woocommerce_search_guide, analyze-sales
INFO:mcp_use:🧠 Agent ready with tools: wc_products_search, wc_get_product, wc_get_product_variations, wc_get_product_variation, wc_get_categories, wc_get_tags, wc_analyze_search_intent, wc_intelligent_search, wc_analyze_search_intent_helper, wc_get_product_reviews, wc_get_product_review, wc_get_product_attributes, wc_get_product_attribute, wc_get_attribute_terms, wc_get_shipping_zones, wc_get_shipping_zone, wc_get_shipping_methods, wc_get_tax_classes, wc_get_tax_rates, wc_get_payment_gateways, wc_get_system_status, wc_get_system_tools, woocommerce_search_guide, analyze-sales
2025-07-18 13:44:39,679 - mcp_use - INFO - ✨ Agent initialization complete
INFO:mcp_use:✨ Agent initialization complete
🔧 Intercepting 24 LangChain tools...
✅ LangChain tool interception set up for 24 tools
✅ Agent inicializovaný s MCP tool interception
🔧 Pred filtrom: 24 nástrojov
✅ Žiadne duplicity v agent._tools
✅ Agent má _tools: 24
🚀 WordPress Claude Chat Bot spustený!
💬 Napíšte 'exit' pre ukončenie chatu
🤖 Poháňa Claude Haiku s automatickým tool detection
📊 Pokročilé počítanie tokenov + Memory management
🎯 Dodatočné príkazy:
- 'tokens' alebo 'stats' - zobrazí celkové tokeny za session
- 'limits' - zobrazí aktuálne token limity
- 'memory' - zobrazí stav conversation memory
- 'clear' alebo 'reset' - vymaže históriu konverzácie
- 'debug' - zobrazí debug informácie
------------------------------------------------------------
👤 Vy: What colors are available for the Ramie Shirt with Pockets?
🤖 Claude: 🚀 SmartMCPAgent.run() starting (max 5 steps)
2025-07-18 13:44:45,932 - mcp_use - INFO - 💬 Received query: 'What colors are available for the Ramie Shirt with...'
INFO:mcp_use:💬 Received query: 'What colors are available for the Ramie Shirt with...'
2025-07-18 13:44:45,932 - mcp_use - INFO - 🏁 Starting agent execution with max_steps=5
INFO:mcp_use:🏁 Starting agent execution with max_steps=5
2025-07-18 13:44:45,932 - mcp_use - INFO - 👣 Step 1/5
INFO:mcp_use:👣 Step 1/5
🔍 LLM START: Original input 568 tokenov
INFO:httpx:HTTP Request: POST https://api.anthropic.com/v1/messages "HTTP/1.1 200 OK"
🔍 HĽADÁM real token data vo všetkých možných miestach:
✅ Nájdené v message.usage_metadata: 9,063 + 98
🎯 POUŽÍVAM REAL API tokens: 9,063 input + 98 output
🔧 Async tool call intercepted: wc_products_search
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 200 OK"
✅ NORMÁLNY truncation threshold: 20,000 (usage: 15.1%)
2025-07-18 13:44:49,463 - mcp_use - INFO - 🔧 Tool call: wc_products_search with input: {'search': 'Ramie Shirt with Pockets'}
INFO:mcp_use:🔧 Tool call: wc_products_search with input: {'search': 'Ramie Shirt with Pockets'}
2025-07-18 13:44:49,463 - mcp_use - INFO - 📄 Tool result: [{"id":1169,"name":"Ramie Shirt with Pockets","slug":"ramie-shirt-with-pockets","permalink":"http...
INFO:mcp_use:📄 Tool result: [{"id":1169,"name":"Ramie Shirt with Pockets","slug":"ramie-shirt-with-pockets","permalink":"http...
2025-07-18 13:44:49,463 - mcp_use - INFO - 👣 Step 2/5
INFO:mcp_use:👣 Step 2/5
🔍 LLM START: Original input 4,357 tokenov
INFO:httpx:HTTP Request: POST https://api.anthropic.com/v1/messages "HTTP/1.1 200 OK"
🔍 HĽADÁM real token data vo všetkých možných miestach:
✅ Nájdené v message.usage_metadata: 13,703 + 76
🎯 POUŽÍVAM REAL API tokens: 13,703 input + 76 output
🔧 Async tool call intercepted: wc_get_product_variations
INFO:httpx:HTTP Request: POST https://woo.webtalkbot.com/wp-json/wp/v2/wpmcp/streamable "HTTP/1.1 200 OK"
✅ NORMÁLNY truncation threshold: 20,000 (usage: 37.9%)
2025-07-18 13:44:53,069 - mcp_use - INFO - 🔧 Tool call: wc_get_product_variations with input: {'product_id': 1169}
INFO:mcp_use:🔧 Tool call: wc_get_product_variations with input: {'product_id': 1169}
2025-07-18 13:44:53,069 - mcp_use - INFO - 📄 Tool result: [{"id":1526,"type":"variation","date_created":"2025-04-15T05:53:32","date_created_gmt":"2025-04-1...
INFO:mcp_use:📄 Tool result: [{"id":1526,"type":"variation","date_created":"2025-04-15T05:53:32","date_created_gmt":"2025-04-1...
2025-07-18 13:44:53,069 - mcp_use - INFO - 👣 Step 3/5
INFO:mcp_use:👣 Step 3/5
🔍 LLM START: Original input 6,655 tokenov
INFO:httpx:HTTP Request: POST https://api.anthropic.com/v1/messages "HTTP/1.1 200 OK"
🔍 HĽADÁM real token data vo všetkých možných miestach:
✅ Nájdené v message.usage_metadata: 16,623 + 59
🎯 POUŽÍVAM REAL API tokens: 16,623 input + 59 output
2025-07-18 13:44:56,668 - mcp_use - INFO - ✅ Agent finished at step 3
INFO:mcp_use:✅ Agent finished at step 3
2025-07-18 13:44:56,668 - mcp_use - INFO - 🎉 Agent execution complete in 10.73657512664795 seconds
INFO:mcp_use:🎉 Agent execution complete in 10.73657512664795 seconds
Based on the product information and variations, the Ramie Shirt with Pockets is available in two colors:
1. White
2. Yellow
These colors are available across different sizes, so you can choose the color and size that best suits your preference.
🔧 MANUAL tool detection: Odhadovaných 4,540 tool tokenov
📊 Token Usage (táto odpoveď):
📥 Input tokens: 43,992
• User input: 13
• LLM calls input: 39,389
• Tool definitions: 50
• Tool responses (→ Claude input): 4,540
📤 Output tokens: 284
• LLM generated text: 233
• Final response: 51
🔧 Tools used: 1
◦ detected_tool_call: 50 def + 4,540 response
📊 Total tokens: 44,276
⏱️ Duration: 10.9s
🌐 LLM calls: 3 | Tool calls: 1
📋 Token Limits Status:
• Input: 39,389/60,000 (65.6%)
• Output: 233/5,000 (4.7%)
• LLM calls: 3/5
👤 Vy: