Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > Show me latest 3 commits
- Assistant:
- I will use the terminal to show the latest 3 commits.
- The latest three commits are:
- - 9a0311c: "Refactor: Update CLI and related files" by KESHA on Sat Apr 12 14:54:56 2025 +0200
- - b539b3f: "Update: Various updates" by KESHA on Sat Apr 12 14:39:05 2025 +0200
- - 74b4762: "Refactor: Update documentation and add webparser tool" by KESHA on Sat Apr 12 00:47:49 2025 +0300
- > What happened in my workspace? show me 10 recent file changes
- Assistant:
- I will use the workspace changelog to show the 10 most recent file changes.
- Here's a summary of the 10 most recent file changes in your workspace:
- - docs/currentstate.md was deleted on 2025-04-12.
- - prompt.txt was modified, created, and deleted on 2025-04-11.
- - cli/cli was created and deleted on 2025-04-11.
- - cli/internal/handlers/chat.go was modified multiple times on 2025-04-11.
- > What is Doppler's effect?
- Assistant:
- I will use websearch to find information about the Doppler effect.
- Used additional tool: webparser
- The Doppler effect (or Doppler shift) is the change in the frequency of a wave in relation to an observer who is moving relative to the source of the wave. A common example is the change of pitch heard when a vehicle sounding a horn approaches and recedes from an observer.
- > /debug on
- Debug mode enabled. Additional debug information will be displayed.
- > Who is Donald Trump
- Assistant:
- DEBUG: Stream chunk received
- {
- "Candidates": [
- {
- "Index": 0,
- "Content": {
- "Parts": [
- "I"
- ],
- "Role": "model"
- },
- "FinishReason": 0,
- "SafetyRatings": [
- {
- "Category": 8,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 10,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 7,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 9,
- "Probability": 1,
- "Blocked": false
- }
- ],
- "CitationMetadata": null,
- "TokenCount": 0
- }
- ],
- "PromptFeedback": null,
- "UsageMetadata": {
- "PromptTokenCount": 7537,
- "CachedContentTokenCount": 0,
- "CandidatesTokenCount": 0,
- "TotalTokenCount": 7537
- }
- }
- DEBUG: Part type: genai.Text
- DEBUG: Part JSON: "I"
- DEBUG: Text chunk: I
- IDEBUG: Stream chunk received
- {
- "Candidates": [
- {
- "Index": 0,
- "Content": {
- "Parts": [
- " will use web"
- ],
- "Role": "model"
- },
- "FinishReason": 0,
- "SafetyRatings": [
- {
- "Category": 8,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 10,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 7,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 9,
- "Probability": 1,
- "Blocked": false
- }
- ],
- "CitationMetadata": null,
- "TokenCount": 0
- }
- ],
- "PromptFeedback": null,
- "UsageMetadata": {
- "PromptTokenCount": 7537,
- "CachedContentTokenCount": 0,
- "CandidatesTokenCount": 0,
- "TotalTokenCount": 7537
- }
- }
- DEBUG: Part type: genai.Text
- DEBUG: Part JSON: " will use web"
- DEBUG: Text chunk: will use web
- will use webDEBUG: Stream chunk received
- {
- "Candidates": [
- {
- "Index": 0,
- "Content": {
- "Parts": [
- "search to find information about Donald Trump.\n"
- ],
- "Role": "model"
- },
- "FinishReason": 0,
- "SafetyRatings": [
- {
- "Category": 8,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 10,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 7,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 9,
- "Probability": 1,
- "Blocked": false
- }
- ],
- "CitationMetadata": null,
- "TokenCount": 0
- }
- ],
- "PromptFeedback": null,
- "UsageMetadata": {
- "PromptTokenCount": 7537,
- "CachedContentTokenCount": 0,
- "CandidatesTokenCount": 0,
- "TotalTokenCount": 7537
- }
- }
- DEBUG: Part type: genai.Text
- DEBUG: Part JSON: "search to find information about Donald Trump.\n"
- DEBUG: Text chunk: search to find information about Donald Trump.
- search to find information about Donald Trump.
- DEBUG: Stream chunk received
- {
- "Candidates": [
- {
- "Index": 0,
- "Content": {
- "Parts": [
- {
- "Name": "websearch",
- "Args": {
- "query": "Who is Donald Trump"
- }
- }
- ],
- "Role": "model"
- },
- "FinishReason": 1,
- "SafetyRatings": [
- {
- "Category": 8,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 10,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 7,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 9,
- "Probability": 1,
- "Blocked": false
- }
- ],
- "CitationMetadata": null,
- "TokenCount": 0
- }
- ],
- "PromptFeedback": null,
- "UsageMetadata": {
- "PromptTokenCount": 7212,
- "CachedContentTokenCount": 0,
- "CandidatesTokenCount": 20,
- "TotalTokenCount": 7232
- }
- }
- DEBUG: Part type: genai.FunctionCall
- DEBUG: Part JSON: {"Name":"websearch","Args":{"query":"Who is Donald Trump"}}
- DEBUG: Found function call via JSON inspection: websearch
- DEBUG: Function args: {"query":"Who is Donald Trump"}
- DEBUG: End of stream. Full response: I will use websearch to find information about Donald Trump.
- DEBUG: Tool calls collected: 1
- First, I'll use the websearch tool...
- - Tool: websearch
- Arguments: {"query":"Who is Donald Trump"}
- First, I'll use the websearch tool...
- - Tool: websearch
- Arguments: {"query":"Who is Donald Trump"}
- DEBUG: Calling MCP tool at URL: http://localhost:8080/mcp/websearch
- DEBUG: MCP response: {"content":{"text":"Search results for: Who is Donald Trump\n\n1. Donald Trump - Wikipedia\n https://en.wikipedia.org/wiki/Donald_Trump\n \n\n2. Donald Trump | Biography, Education, Business Career, Political …\n https://www.britannica.com/biography/Donald-Trump\n \n\n3. Donald Trump's life story: From real estate to politics - BBC\n https://www.bbc.com/news/world-us-canada-35318432\n Sep 10, 2024 · Long before making three consecutive bids for the US presidency, Donald Trump was America's most flamboyant billionaire. The New York real estate mogul's life was …\n\n4. Donald Trump: Biography, U.S. President, Businessman\n https://www.biography.com/political-figures/donald-trump\n \n\n5. Donald Trump - Simple English Wikipedia, the free …\n https://simple.wikipedia.org/wiki/Donald_Trump\n \n\n=== NEXT STEP REQUIRED ===\n{\n \"search_results\": \"Search results for: Who is Donald Trump\\n\\n1. Donald Trump - Wikipedia\\n https://en.wikipedia.org/wiki/Donald_Trump\\n \\n\\n2. Donald Trump | Biography, Education, Business Career, Political …\\n https://www.britannica.com/biography/Donald-Trump\\n \\n\\n3. Donald Trump's life story: From real estate to politics - BBC\\n https://www.bbc.com/news/world-us-canada-35318432\\n Sep 10, 2024 · Long before making three consecutive bids for the US presidency, Donald Trump was America's most flamboyant billionaire. The New York real estate mogul's life was …\\n\\n4. Donald Trump: Biography, U.S. President, Businessman\\n https://www.biography.com/political-figures/donald-trump\\n \\n\\n5. Donald Trump - Simple English Wikipedia, the free …\\n https://simple.wikipedia.org/wiki/Donald_Trump\\n \\n\\n\",\n \"query\": \"Who is Donald Trump\"\n}\n"}}
- Result: Search results for: Who is Donald Trump
- 1. Donald Trump - Wikipedia
- https://en.wikipedia.org/wiki/Donald_Trump
- 2. Donald Trump | Biography, Education, Business Career, Political …
- https://www.britannica.com/biography/Donald-Trump
- 3. Donald Trump's life story: From real estate to politics - BBC
- https://www.bbc.com/news/world-us-canada-35318432
- Sep 10, 2024 · Long before making three consecutive bids for the US presidency, Donald Trump was America's most flamboyant billionaire. The New York real estate mogul's life was …
- 4. Donald Trump: Biography, U.S. President, Businessman
- https://www.biography.com/political-figures/donald-trump
- 5. Donald Trump - Simple English Wikipedia, the free …
- https://simple.wikipedia.org/wiki/Donald_Trump
- === NEXT STEP REQUIRED ===
- {
- "search_results": "Search results for: Who is Donald Trump\n\n1. Donald Trump - Wikipedia\n https://en.wikipedia.org/wiki/Donald_Trump\n \n\n2. Donald Trump | Biography, Education, Business Career, Political …\n https://www.britannica.com/biography/Donald-Trump\n \n\n3. Donald Trump's life story: From real estate to politics - BBC\n https://www.bbc.com/news/world-us-canada-35318432\n Sep 10, 2024 · Long before making three consecutive bids for the US presidency, Donald Trump was America's most flamboyant billionaire. The New York real estate mogul's life was …\n\n4. Donald Trump: Biography, U.S. President, Businessman\n https://www.biography.com/political-figures/donald-trump\n \n\n5. Donald Trump - Simple English Wikipedia, the free …\n https://simple.wikipedia.org/wiki/Donald_Trump\n \n\n",
- "query": "Who is Donald Trump"
- }
- Result: Search results for: Who is Donald Trump
- 1. Donald Trump - Wikipedia
- https://en.wikipedia.org/wiki/Donald_Trump
- 2. Donald Trump | Biography, Education, Business Career, Political …
- https://www.britannica.com/biography/Donald-Trump
- 3. Donald Trump's life story: From real estate to politics - BBC
- https://www.bbc.com/news/world-us-canada-35318432
- Sep 10, 2024 · Long before making three consecutive bids for the US presidency, Donald Trump was America's most flamboyant billionaire. The New York real estate mogul's life was …
- 4. Donald Trump: Biography, U.S. President, Businessman
- https://www.biography.com/political-figures/donald-trump
- 5. Donald Trump - Simple English Wikipedia, the free …
- https://simple.wikipedia.org/wiki/Donald_Trump
- === NEXT STEP REQUIRED ===
- {
- "search_results": "Search results for: Who is Donald Trump\n\n1. Donald Trump - Wikipedia\n https://en.wikipedia.org/wiki/Donald_Trump\n \n\n2. Donald Trump | Biography, Education, Business Career, Political …\n https://www.britannica.com/biography/Donald-Trump\n \n\n3. Donald Trump's life story: From real estate to politics - BBC\n https://www.bbc.com/news/world-us-canada-35318432\n Sep 10, 2024 · Long before making three consecutive bids for the US presidency, Donald Trump was America's most flamboyant billionaire. The New York real estate mogul's life was …\n\n4. Donald Trump: Biography, U.S. President, Businessman\n https://www.biography.com/political-figures/donald-trump\n \n\n5. Donald Trump - Simple English Wikipedia, the free …\n https://simple.wikipedia.org/wiki/Donald_Trump\n \n\n",
- "query": "Who is Donald Trump"
- }
- Used tool: websearch
- Getting response based on all tool results...
- DEBUG: Raw Gemini Response:
- {
- "Candidates": [
- {
- "Index": 0,
- "Content": {
- "Parts": [
- "I will use webparser to extract content from the search results about Donald Trump.\n"
- ],
- "Role": "model"
- },
- "FinishReason": 1,
- "SafetyRatings": [
- {
- "Category": 8,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 10,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 7,
- "Probability": 1,
- "Blocked": false
- },
- {
- "Category": 9,
- "Probability": 1,
- "Blocked": false
- }
- ],
- "CitationMetadata": null,
- "TokenCount": 0
- }
- ],
- "PromptFeedback": null,
- "UsageMetadata": {
- "PromptTokenCount": 8632,
- "CachedContentTokenCount": 0,
- "CandidatesTokenCount": 0,
- "TotalTokenCount": 8632
- }
- }
- DEBUG: Candidate count: 1
- DEBUG: Candidate 0 parts count: 1
- DEBUG: Part 0 type: genai.Text
- DEBUG: Text content: I will use webparser to extract content from the search results about Donald Trump.
- Final response after all tool calls:
- I will use webparser to extract content from the search results about Donald Trump.
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement