@@ -239,8 +239,8 @@ func (r FileChunkingStrategyParam) implementsFileChunkingStrategyParamUnion() {}
239239// The chunking strategy used to chunk the file(s). If not set, will use the `auto`
240240// strategy. Only applicable if `file_ids` is non-empty.
241241//
242- // Satisfied by [AutoFileChunkingStrategyParam], [StaticFileChunkingStrategyParam],
243- // [FileChunkingStrategyParam].
242+ // Satisfied by [AutoFileChunkingStrategyParam],
243+ // [StaticFileChunkingStrategyObjectParam], [ FileChunkingStrategyParam].
244244type FileChunkingStrategyParamUnion interface {
245245 implementsFileChunkingStrategyParamUnion ()
246246}
@@ -386,6 +386,33 @@ func (r StaticFileChunkingStrategyObjectType) IsKnown() bool {
386386 return false
387387}
388388
389+ type StaticFileChunkingStrategyObjectParam struct {
390+ Static param.Field [StaticFileChunkingStrategyParam ] `json:"static,required"`
391+ // Always `static`.
392+ Type param.Field [StaticFileChunkingStrategyObjectParamType ] `json:"type,required"`
393+ }
394+
395+ func (r StaticFileChunkingStrategyObjectParam ) MarshalJSON () (data []byte , err error ) {
396+ return apijson .MarshalRoot (r )
397+ }
398+
399+ func (r StaticFileChunkingStrategyObjectParam ) implementsFileChunkingStrategyParamUnion () {}
400+
401+ // Always `static`.
402+ type StaticFileChunkingStrategyObjectParamType string
403+
404+ const (
405+ StaticFileChunkingStrategyObjectParamTypeStatic StaticFileChunkingStrategyObjectParamType = "static"
406+ )
407+
408+ func (r StaticFileChunkingStrategyObjectParamType ) IsKnown () bool {
409+ switch r {
410+ case StaticFileChunkingStrategyObjectParamTypeStatic :
411+ return true
412+ }
413+ return false
414+ }
415+
389416// A vector store is a collection of processed files can be used by the
390417// `file_search` tool.
391418type VectorStore struct {
0 commit comments