Linkup enables web search capabilities within LLM requests through the Respan platform. Add linkup_params to API calls to retrieve search results that are automatically injected into prompt templates.
Configure search depth (standard or deep), output type (searchResults, sourcedAnswer, or structured), and optional structured output schemas. Results include answer text and an array of sources with URLs and text snippets.
Add a linkup_params object to your API request body with the required search query (q parameter). Optional parameters include depth, outputType, structuredOutputSchema, and includeImages.
The system extracts parameters, queries the Linkup API, and populates template variables using Jinja2 syntax. Access results via linkup_search_response.answer and iterate through sources for citations.