SwiftstructGenerativeAgents
struct GenerativeAgents.LLMRequest
Members 13
- field
let config: GenerativeAgents.GenerationConfiguration - field
var contents: [GenerativeAgents.TranscriptContent]+0x10 - field
let modelName: String?+0x0 - field
let outputConfiguration: GenerativeAgents.LLMAgent.OutputConfiguration? - field
let requestMetadata: GenerativeAgents.LLMRequest.RequestMetadata? - field
let toolChoice: GenerativeFunctionsFoundation.ToolChoice? - field
let tools: [GenerativeFunctionsFoundation.DynamicArgumentsTooling] - func
appendingSystemInstructions(PromptKit.System) -> GenerativeAgents.LLMRequest - func
appendingSystemInstructions(String) -> GenerativeAgents.LLMRequest - func
replaceContents([GenerativeAgents.TranscriptContent]) -> GenerativeAgents.LLMRequest - func
withModelName(String) -> GenerativeAgents.LLMRequest - func
withTool(GenerativeFunctionsFoundation.DynamicArgumentsTooling) -> GenerativeAgents.LLMRequest - init
init() -> GenerativeAgents.LLMRequest
Header
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 }