SwiftextensionTokenGeneration

extension TokenGeneration.TokenGenerator: GenerativeAgents.AgentModelProviding

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 32

  1. func_complete<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> GenerativeFunctionsFoundation.CompletionResponse<String>
  2. 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>
  3. 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>>
  4. 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>
  5. func_overestimateTokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> Int
  6. func_overestimateTokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> Int
  7. func_overestimateTokenCountSync<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) -> Int
  8. func_overestimateTokenCountSync<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) -> Int
  9. func_render<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> PromptKit.RawPrompt
  10. func_render<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> PromptKit.RawPrompt
  11. func_respond<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> GenerativeFunctionsFoundation.ChatMessageResponse<String>
  12. 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>
  13. 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>>
  14. 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>
  15. func_streamCompletion<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> GenerativeModels.TokenGeneratorCompletionResponseStringStream
  16. func_streamResponse<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> GenerativeModels.TokenGeneratorChatResponseStringStream
  17. func_tokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.CompletionPrompt>(configuration: A) async throws -> Int
  18. func_tokenCount<A where A: PromptKit.GenerativeConfigurationProtocol, A.PromptType == PromptKit.ChatMessagesPrompt>(configuration: A) async throws -> Int
  19. typealiastypealias ChatGenerativeStreamingParameters = Swift.Optional<TokenGeneration.SamplingParameters>
  20. typealiastypealias ChatOneShotGenerableResponseAdditionalInfo = TokenGeneration.TokenGeneratorChatResponseGenerableAdditionalInfo
  21. typealiastypealias ChatStringParameters = Swift.Optional<TokenGeneration.SamplingParameters>
  22. typealiastypealias ChatStringResponse = GenerativeFunctionsFoundation.ChatMessageResponse<Swift.String>
  23. typealiastypealias ChatStringResponseOneShot = TokenGeneration.TokenGeneratorChatResponse
  24. typealiastypealias ChatStringStreamParameters = Swift.Optional<TokenGeneration.SamplingParameters>
  25. typealiastypealias ChatStringStreamResponse = GenerativeModels.TokenGeneratorChatResponseStringStream
  26. typealiastypealias CompletionGenerativeStreamableParameters = Swift.Optional<TokenGeneration.SamplingParameters>
  27. typealiastypealias CompletionOneShotGenerableResponseAdditionalInfo = TokenGeneration.TokenGeneratorCompletionResponseOneShotGenerableAdditionalInfo
  28. typealiastypealias CompletionStringParameters = Swift.Optional<TokenGeneration.SamplingParameters>
  29. typealiastypealias CompletionStringResponse = GenerativeFunctionsFoundation.CompletionResponse<Swift.String>
  30. typealiastypealias CompletionStringResponseOneShot = TokenGeneration.TokenGeneratorCompletionResponse
  31. typealiastypealias CompletionStringStreamParameters = Swift.Optional<TokenGeneration.SamplingParameters>
  32. typealiastypealias CompletionStringStreamResponse = GenerativeModels.TokenGeneratorCompletionResponseStringStream
extension TokenGeneration.TokenGenerator: GenerativeAgents.AgentModelProviding {}