SwiftextensionTokenGeneration
extension TokenGeneration.TokenGenerator: GenerativeFunctionsFoundation.ChatLanguageModelProvidingOneShotGenerable
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
inherits{}
Members 32
- func
_complete<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> GenerativeFunctionsFoundation.CompletionResponse<String> - func
_complete<A, B where A: GenerativeFunctionsFoundation.Generable, B: PromptKit.GenerativeConfigurationProtocol, B.PromptType == PromptKit.CompletionPrompt>(type: A.Type, configuration: B) async throws -> GenerativeFunctionsFoundation.CompletionResponse<A> - func
_completeMultiElement<A, B where A: GenerativeFunctionsFoundation.GenerableStreaming, B: PromptKit.GenerativeConfigurationProtocol, B.PromptType == PromptKit.CompletionPrompt>(type: A.Type, configuration: B) async throws -> GenerativeFunctionsFoundation.CompletionResponse<GenerativeFunctionsFoundation.GenerativeStream<A>> - func
_completeSingleElement<A, B where A: GenerativeFunctionsFoundation.GenerableStreaming, B: PromptKit.GenerativeConfigurationProtocol, B.PromptType == PromptKit.CompletionPrompt>(type: A.Type, configuration: B) async throws -> GenerativeFunctionsFoundation.CompletionResponse<A> - func
_overestimateTokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> Int - func
_overestimateTokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> Int - func
_overestimateTokenCountSync<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) -> Int - func
_overestimateTokenCountSync<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) -> Int - func
_render<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> PromptKit.RawPrompt - func
_render<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> PromptKit.RawPrompt - func
_respond<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> GenerativeFunctionsFoundation.ChatMessageResponse<String> - func
_respond<A, B where A: GenerativeFunctionsFoundation.Generable, B: PromptKit.GenerativeConfigurationProtocol, B.PromptType == PromptKit.ChatMessagesPrompt>(type: A.Type, configuration: B) async throws -> GenerativeFunctionsFoundation.ChatMessageResponse<A> - func
_respondMultiElement<A, B where A: GenerativeFunctionsFoundation.GenerableStreaming, B: PromptKit.GenerativeConfigurationProtocol, B.PromptType == PromptKit.ChatMessagesPrompt>(type: A.Type, configuration: B) async throws -> GenerativeFunctionsFoundation.ChatMessageResponse<GenerativeFunctionsFoundation.GenerativeStream<A>> - func
_respondSingleElement<A, B where A: GenerativeFunctionsFoundation.GenerableStreaming, B: PromptKit.GenerativeConfigurationProtocol, B.PromptType == PromptKit.ChatMessagesPrompt>(type: A.Type, configuration: B) async throws -> GenerativeFunctionsFoundation.ChatMessageResponse<A> - func
_streamCompletion<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> GenerativeModels.TokenGeneratorCompletionResponseStringStream - func
_streamResponse<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> GenerativeModels.TokenGeneratorChatResponseStringStream - func
_tokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> Int - func
_tokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> Int - typealias
typealias ChatGenerativeStreamingParameters = Swift.Optional<TokenGeneration.SamplingParameters> - typealias
typealias ChatOneShotGenerableResponseAdditionalInfo = TokenGeneration.TokenGeneratorChatResponseGenerableAdditionalInfo - typealias
typealias ChatStringParameters = Swift.Optional<TokenGeneration.SamplingParameters> - typealias
typealias ChatStringResponse = GenerativeFunctionsFoundation.ChatMessageResponse<Swift.String> - typealias
typealias ChatStringResponseOneShot = TokenGeneration.TokenGeneratorChatResponse - typealias
typealias ChatStringStreamParameters = Swift.Optional<TokenGeneration.SamplingParameters> - typealias
typealias ChatStringStreamResponse = GenerativeModels.TokenGeneratorChatResponseStringStream - typealias
typealias CompletionGenerativeStreamableParameters = Swift.Optional<TokenGeneration.SamplingParameters> - typealias
typealias CompletionOneShotGenerableResponseAdditionalInfo = TokenGeneration.TokenGeneratorCompletionResponseOneShotGenerableAdditionalInfo - typealias
typealias CompletionStringParameters = Swift.Optional<TokenGeneration.SamplingParameters> - typealias
typealias CompletionStringResponse = GenerativeFunctionsFoundation.CompletionResponse<Swift.String> - typealias
typealias CompletionStringResponseOneShot = TokenGeneration.TokenGeneratorCompletionResponse - typealias
typealias CompletionStringStreamParameters = Swift.Optional<TokenGeneration.SamplingParameters> - typealias
typealias CompletionStringStreamResponse = GenerativeModels.TokenGeneratorCompletionResponseStringStream
Header
extension TokenGeneration.TokenGenerator: GenerativeFunctionsFoundation.ChatLanguageModelProvidingOneShotGenerable { typealias ChatOneShotGenerableResponseAdditionalInfo = TokenGeneration.TokenGeneratorChatResponseGenerableAdditionalInfo }