ToolPart

constructor(id: String, name: String, state: ToolState = ToolState.INPUT_STREAMING, input: String = "", output: String? = null, errorText: String? = null, title: String? = null, preliminary: Boolean = false, subagent: Message? = null, kind: ToolKind = ToolKind.Function, source: String? = null, category: ToolCategory? = null, location: String? = null, approvalAnswers: ApprovalAnswers = ApprovalAnswers.All)(source)