Missing domains in web_search_call.action
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 1.5k
- Forks
- 264
- Avg merge
- 9h 46m
- Merged PRs (30d)
- 96
Description
From https://platform.openai.com/docs/guides/tools-web-search?api-mode=responses#output-and-citations
Output and citations
Model responses that use the web search tool will include two parts:
A
web_search_calloutput item with the ID of the search call, along with the action taken inweb_search_call.action. The action is one of:
search, which represents a web search. It will usually (but not always) includes the searchqueryanddomainswhich were searched. Search actions incur a tool call cost (see pricing).
Issue
The Search(ResponseFunctionWebSearch->Action->Search) class does not have domains field.
class Search
private constructor(
private val query: JsonField<String>,
private val type: JsonValue,
private val additionalProperties: MutableMap<String, JsonValue>,
) {
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ResponseFunctionWebSearch->Action->Search class and compare its fields with the web search documentation linked in the issue. Add the missing domains field so search actions expose the domains that were searched, then verify the model represents the documented response shape.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100