https://retellai.com/?utm_source=discord&utm_medium=seo logo
Adding the new Claude 3.5 Sonnet model
# đŸ“’ăƒ»feature-requests
u
Would love to see how it performs
r
added
c
How does this work with function calling?
Last I remember anthropic models do a weird thought process for streaming tool calls which get caught up in the agent response
Is that not the case anymore?
u
They still have extreme troubles with concisenss after a tool call
@cartier5 if you figure this out - let me know? Here's a thread I have going on anthropic's channels https://discord.com/channels/1072196207201501266/1255650684381171835
c
@_alist_ just read your post and watched the video
What I’m talking about is a bit different unless that output that’s it’s repeating is Claude’s process my issue is that that thinking process text gets caught in the voice response
Which I’ve been dealing with using 3.5 with simple text replacement because it’s much more reliable with that tags
Your issue seems like it’s just a promoting problem tho when I’ve encountered that I would return in the tool use result instructions for how the agent should act after calling the tool
Example:
Copy code
Instructions: 
The assistant will Call the tool quietly, return an empty response
Or could try and simple don’t stream anymore responses once that tool is called like manual mute the agent once that tool is called so nothing comes through
u
@cartier5 thanks man. just to be clear are you using a design like [memgpt](https://github.com/cpacker/MemGPT/blob/main/memgpt/prompts/system/memgpt_gpt35_extralong.txt) ? Must admit I've never have tried to use thinking tags Re your intstructions, I had something similar, but must admit my prompt was getting sorta long at 3000 characters:
Copy code
Bug fixes:
- Avoid repetition after tool calls and function uses. E.g., instead of saying, "Roger, I'm using {tool}" and then "I've used the {tool}", just say "Roger, {tool} complete".
And with text replacement you're talking about just dropping the tag? Or are you talking about my
**
post for 4o, or something else... If you're just trying to drop you could do a test but you might luck out that is a single token... That was the basis of my 4o
**
fix.
c
So the instructions wouldn’t be in your system prompt but in the content of the function call result object that you put back in the messages
And the thinking tags are just COT that anthropoic makes Claude produce using their system prompt
If your not using anthropix in your flight simulator app then theirs no need to think about the thinking tags
I was talking about simply doing text replacement on the thinking tags to remove the extra words from the agent response
u
Interesting-- I thought this was the prompt?? https://x.com/AmandaAskell/status/1765207842993434880/photo/1
c
Copy code
{
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "<thinking>To answer this question, I will: 1. Use the get_weather tool to get the current weather in San Francisco. 2. Use the get_time tool to get the current time in the America/Los_Angeles timezone, which covers San Francisco, CA.</thinking>"
    },
    {
      "type": "tool_use",
      "id": "toolu_01A09q90qw90lq917835lq9",
      "name": "get_weather",
      "input": {
        "location": "San Francisco, CA"
      }
    }
  ]
}
That may be the prompt but this above is what they do with tool calling
u
these sort of things are so deeply engrained in the the model ..