ToolArgument
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- struct ToolArgument : struct ToolArgument
-
One argument of a tool, in enough detail to generate its schema.
The schema and the reader are generated from the same declaration, which is what keeps a documented argument from being one the tool cannot actually receive.
Members
- functionstatic ¶!=(_:_:)
-
Inherited from
Equatable.!=(_:_:)Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values
aandb,a != bimplies thata == bisfalse.This is the default implementation of the not-equal-to operator (
!=) for any type that conforms toEquatable.- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.
- Parameters:
- isRequired : let isRequired: Bool
-
The only values accepted, when there is a fixed set. Reaches the schema as
enum, so a client can offer them rather than guess.
- defaultValue : let defaultValue: JSONValue?
-
What the tool does when the argument is omitted, stated in the schema so a caller need not send it to find out.
-
Inclusive numeric bounds, enforced by the reader and published in the schema.
- maximumItems : let maximumItems: Int?
-
The most entries accepted in an array argument.
- minimumItems : let minimumItems: Int?
-
The fewest entries accepted in an array argument.
- maximumLength : let maximumLength: Int?
-
The most characters accepted in a string argument.
- maximumUTF8Bytes : let maximumUTF8Bytes: Int?
-
A byte ceiling disclosed explicitly because JSON Schema maxLength counts characters.
-
A JSON Schema pattern applied before the value reaches tmux.
- itemSchema : let itemSchema: JSONValue?
-
The schema for each entry when an array contains structured values.
- tmuxFormatControl : let tmuxFormatControl: TmuxFormatControl?
-
The exact control applied before this value reaches tmux format expansion.