SwiftstructGenerativeAgents

struct GenerativeAgents.LLMRequest

Members 13

  1. fieldlet config: GenerativeAgents.GenerationConfiguration
  2. fieldvar contents: [GenerativeAgents.TranscriptContent]+0x10
  3. fieldlet modelName: String?+0x0
  4. fieldlet outputConfiguration: GenerativeAgents.LLMAgent.OutputConfiguration?
  5. fieldlet requestMetadata: GenerativeAgents.LLMRequest.RequestMetadata?
  6. fieldlet toolChoice: GenerativeFunctionsFoundation.ToolChoice?
  7. fieldlet tools: [GenerativeFunctionsFoundation.DynamicArgumentsTooling]
  8. funcappendingSystemInstructions(PromptKit.System) -> GenerativeAgents.LLMRequest
  9. funcappendingSystemInstructions(String) -> GenerativeAgents.LLMRequest
  10. funcreplaceContents([GenerativeAgents.TranscriptContent]) -> GenerativeAgents.LLMRequest
  11. funcwithModelName(String) -> GenerativeAgents.LLMRequest
  12. funcwithTool(GenerativeFunctionsFoundation.DynamicArgumentsTooling) -> GenerativeAgents.LLMRequest
  13. initinit() -> GenerativeAgents.LLMRequest
struct LLMRequest {
    struct RequestMetadata {
        let sessionIdentifier: Swift.String
        let turnIdentifier: Swift.String
        let previousEventIdentifier: Swift.String?
    }
    let modelName: Swift.String?
    var contents: [GenerativeAgents.TranscriptContent]
    let config: GenerativeAgents.GenerationConfiguration
    let tools: [any GenerativeFunctionsFoundation.DynamicArgumentsTooling]
    let outputConfiguration: GenerativeAgents.LLMAgent.OutputConfiguration?
    let requestMetadata: GenerativeAgents.LLMRequest.RequestMetadata?
    let toolChoice: GenerativeFunctionsFoundation.ToolChoice?

    init()

    func withModelName(_: Swift.String) -> GenerativeAgents.LLMRequest
    func replaceContents(_: [GenerativeAgents.TranscriptContent]) -> GenerativeAgents.LLMRequest
    func appendingSystemInstructions(_: PromptKit.System) -> GenerativeAgents.LLMRequest
    func appendingSystemInstructions(_: Swift.String) -> GenerativeAgents.LLMRequest
    func withTool(_: any GenerativeFunctionsFoundation.DynamicArgumentsTooling) -> GenerativeAgents.LLMRequest
}