From 0a6c3a58fece7da9121ceef569b8883f19bb42df Mon Sep 17 00:00:00 2001 From: akulkapoor Date: Tue, 5 Nov 2024 18:33:14 -0500 Subject: [PATCH] Fix fern types (#102) Co-authored-by: Akul Kapoor --- fern/definition/copilots.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/fern/definition/copilots.yml b/fern/definition/copilots.yml index 972c5cf..4c42de4 100644 --- a/fern/definition/copilots.yml +++ b/fern/definition/copilots.yml @@ -250,7 +250,8 @@ service: response: stream: - event: initial - data: + data: + event: initial conversationId: fc938005-92db-411a-88eb-32ca50d5f744 webSearchResults: [ @@ -262,16 +263,20 @@ service: ] warnings: [] - event: data_chunk - data: + data: + event: data_chunk chunk: Based on - event: data_chunk - data: + data: + event: data_chunk chunk: the context provided, - event: data_chunk - data: + data: + event: data_chunk chunk: Credal is SOC 2 compliant. - event: final_chunk - data: + data: + event: final_chunk sources: [ { @@ -301,7 +306,8 @@ service: response: stream: - event: blocked - data: + data: + event: blocked conversationId: fc938005-92db-411a-88eb-32ca50d5f744 policyTriggers: [] warnings: [] @@ -582,9 +588,9 @@ types: policyTriggers: list StreamingChunk: - discriminated: false + discriminant: event union: - - InitialChunk - - DataChunk - - FinalChunk - - BlockedChunk \ No newline at end of file + initial: InitialChunk + data_chunk: DataChunk + final_chunk: FinalChunk + blocked: BlockedChunk \ No newline at end of file