can the agent use a tool, if i did not provide ins...
# ask-ai
c
can the agent use a tool, if i did not provide instructions to use it in the prompt
✅ 1
t
Thanks for reaching out, Kushagra. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're asking whether an agent can use a tool when you didn't explicitly instruct it to do so in your prompt. Short answer: yes, an agent can use a tool without explicit instructions if it was designed or configured to do so. A bit more detail: • If the agent's system or policy includes automatic tool invocation (for example, built-in access to logging, search, or external APIs), the agent can call those tools when it determines they're needed to fulfill the request. • If the agent only has access to tools via explicit user instructions, then it will not call them unless you include that direction. • If you want to ensure tools are or aren't used, tell the agent in your prompt (for example: “Do not use external tools” or “Use the search tool to find X”). If you’d like, tell me which agent or platform you’re using (or how it’s configured) and I can explain exactly how it will behave or what settings control automatic tool use. , with interactive elements
c
let's say i created an agent using livekit. I created multiple tools inside the agent using @function_tools decorator. But for one tool i did not provide any instruction to the agent about that tool. so will the agent ever use that tool
t
Thanks — you're asking whether a LiveKit agent will ever use a tool that was registered with
@function_tool
but given no instructions/description. Short answer: technically yes, the tool is registered and available to the LLM, but practically unlikely to be used reliably. Why: • The LLM decides when to invoke tools based on each tool's description (in Python the function docstring). • If a tool has no docstring/description, the LLM lacks guidance and will rarely — if ever — pick it, or may choose it unpredictably. • Best practice: always provide a clear description explaining what the tool does, when it should be used, and its parameters so the agent can select it correctly. If you want, tell me the tool's signature and what behavior you expect and I’ll suggest a concise description you can add. Sources: Function tool definition | LiveKit Documentation | The Handoff Pattern for Voice Agents That Replaces IVR Menus | LiveKit, with interactive elements
c
let's say i provide the description inside the tool but i do not provide instructions in agent's instruction parameter
t
You're asking whether a LiveKit agent will use a tool that has a description (via
@function_tool
docstring or
description
) but isn't mentioned in the agent's global instruction parameter. Short answer: yes — the agent can use that tool. Why: • The LLM decides tool use based on the tool metadata it can see (the tool's description) plus the agent's overall instructions and the user's query. • If the tool has a clear description, the LLM can recognize when the tool is relevant and invoke it even if the agent's instruction text doesn't explicitly list that tool. • If the description is vague or missing, the LLM is much less likely to pick the tool, so clear, specific descriptions are important. If you want, share the agent instruction and the tool description you used and I’ll suggest wording to make the LLM pick the tool reliably. , with interactive elements