AG2 home page
Search or ask...
⌘K
ag2ai/ag2
ag2ai/ag2
Search...
Navigation
ollama
autogen.oai.ollama.is_valid_tool_call_item
Documentation
User Guide
API References
Use Cases
User Stories
Contribute
FAQs
Ecosystem
Blog
API Reference
autogen
Overview
Agent
AgentNameConflictError
AssistantAgent
Cache
ChatResult
ContextExpression
ConversableAgent
GroupChat
GroupChatManager
InvalidCarryOverTypeError
LLMConfig
ModelClient
NoEligibleSpeakerError
OpenAIWrapper
SenderRequiredError
UndefinedNextAgentError
UpdateSystemMessage
UserProxyAgent
a_initiate_swarm_chat
a_run_swarm
config_list_from_dotenv
config_list_from_json
config_list_from_models
config_list_gpt4_gpt35
config_list_openai_aoai
filter_config
gather_usage_summary
get_config_list
initiate_chats
register_function
run_swarm
agentchat
agents
browser_utils
cache
code_utils
coding
doc_utils
events
exception_utils
fast_depends
formatting_utils
graph_utils
import_utils
interop
io
json_utils
llm_config
logger
math_utils
mcp
messages
oai
Overview
AnthropicLLMConfigEntry
AzureOpenAILLMConfigEntry
BedrockLLMConfigEntry
CerebrasLLMConfigEntry
CohereLLMConfigEntry
DeepSeekLLMConfigEntry
GeminiLLMConfigEntry
GroqLLMConfigEntry
MistralLLMConfigEntry
OllamaLLMConfigEntry
OpenAILLMConfigEntry
TogetherLLMConfigEntry
anthropic
bedrock
cerebras
client
client_utils
cohere
gemini
gemini_types
groq
mistral
oai_models
ollama
Overview
OllamaClient
OllamaLLMConfigEntry
is_valid_tool_call_item
response_to_tool_call
openai_utils
together
retrieve_utils
runtime_logging
token_count_utils
tools
types
On this page
is_valid_tool_call_item
ollama
autogen.oai.ollama.is_valid_tool_call_item
is_valid_tool_call_item
Copy
is_valid_tool_call_item(call_item:
dict
)
->
bool
Check that a dictionary item has at least ‘name’, optionally ‘arguments’ and no other keys to match a tool call JSON
Parameters:
Name
Description
call_item
Type:
dict
OllamaLLMConfigEntry
response_to_tool_call
Assistant
Responses are generated using AI and may contain mistakes.