self.new

in rbi/lib/openai/models/beta/assistant.rbi [161:209]


        def self.new(
          id:,
          created_at:,
          description:,
          instructions:,
          metadata:,
          model:,
          name:,
          tools:,
          response_format: nil,
          temperature: nil,
          tool_resources: nil,
          top_p: nil,
          object: :assistant
        ); end
        sig do
          override
            .returns(
              {
                id: String,
                created_at: Integer,
                description: T.nilable(String),
                instructions: T.nilable(String),
                metadata: T.nilable(T::Hash[Symbol, String]),
                model: String,
                name: T.nilable(String),
                object: Symbol,
                tools: T::Array[
                  T.any(
                    OpenAI::Models::Beta::CodeInterpreterTool,
                    OpenAI::Models::Beta::FileSearchTool,
                    OpenAI::Models::Beta::FunctionTool
                  )
                ],
                response_format: T.nilable(
                  T.any(
                    Symbol,
                    OpenAI::Models::ResponseFormatText,
                    OpenAI::Models::ResponseFormatJSONObject,
                    OpenAI::Models::ResponseFormatJSONSchema
                  )
                ),
                temperature: T.nilable(Float),
                tool_resources: T.nilable(OpenAI::Models::Beta::Assistant::ToolResources),
                top_p: T.nilable(Float)
              }
            )
        end