Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions intelligence/ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type {
Failure,
JsonSchema,
JsonSchemaPayload,
JsonValue,
Message,
Progress,
ResponseFormat,
Expand Down
10 changes: 9 additions & 1 deletion intelligence/ts/src/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@

import { ALLOWED_ROLES } from './constants';

export type JsonValue =
| string
| number
| boolean
| JsonValue[]
| { [key: string]: JsonValue }
| null;

/**
* Represents a message in a chat session.
*/
Expand Down Expand Up @@ -69,7 +77,7 @@ export type ToolCall = Record<
/**
* The arguments passed to the tool as key-value pairs.
*/
arguments: Record<string, string>;
arguments: Record<string, JsonValue>;
}
>;

Expand Down
Loading