Make Tool.description optional (#160)
* Make Tool.description optional * Make description parameter in Tool initializer optional
This commit is contained in:
parent
78d187716e
commit
ac90e679cd
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ public struct Tool: Hashable, Codable, Sendable {
|
|||
/// The tool name
|
||||
public let name: String
|
||||
/// The tool description
|
||||
public let description: String
|
||||
public let description: String?
|
||||
/// The tool input schema
|
||||
public let inputSchema: Value
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ public struct Tool: Hashable, Codable, Sendable {
|
|||
/// Initialize a tool with a name, description, input schema, and annotations
|
||||
public init(
|
||||
name: String,
|
||||
description: String,
|
||||
description: String?,
|
||||
inputSchema: Value,
|
||||
annotations: Annotations = nil
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue