Hey everyone,
I’m trying to combine function calling with MCP tools. Both work fine on their own, but when I do something like:
response = await ai.models.generateContent({
model: config.models.gemini,
contents: messages,
config: {
systemInstruction: agentSystemPromptContent,
tools: [
// { googleSearch: {} },
// { urlContext: {} },
mcpToTool(client),
{ functionDeclarations: toolDefinitions },
],
thinkingConfig: thinkingConfig,
}
})
I get this notice:
Automatic function calling with CallableTools and Tools is not yet supported.
Question: When will it be possible to use them together?
That would be super interesting.
Also, quick question for the MCP team: when will compatibility be fully supported? Right now it looks like only tool calls are available experimentally. If I’m not mistaken.
And, when will it be possible to use function calling with googleSearch: {}?