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
5 changes: 5 additions & 0 deletions packages/agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ export type {
ConversationState,
ConversationStatus,
HasApprovalTools,
HITLTool,
HITLToolFunction,
InferToolEvent,
InferToolEventsUnion,
InferToolInput,
Expand Down Expand Up @@ -184,8 +186,11 @@ export type {
export {
hasApprovalRequiredTools,
hasExecuteFunction,
isAutoResolvableTool,
isClientTool,
isGeneratorTool,
isHITLTool,
isManualTool,
isRegularExecuteTool,
isServerTool,
isToolCallOutputEvent,
Expand Down
4 changes: 3 additions & 1 deletion packages/agent/src/lib/conversation-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ export function createRejectedResult<TTools extends readonly Tool[] = readonly T
* Check if a value is a valid content array (array of input_text, input_image, or input_file blocks).
* These can be passed directly as tool output without JSON.stringify.
*/
function isContentArray(value: unknown): value is models.FunctionCallOutputItemOutputUnion1[] {
export function isContentArray(
value: unknown,
): value is models.FunctionCallOutputItemOutputUnion1[] {
if (!Array.isArray(value)) {
return false;
}
Expand Down
Loading
Loading