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
359 changes: 176 additions & 183 deletions eng/emitter-package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-java": "0.42.0"
"@azure-tools/typespec-java": "0.43.0"
},
"devDependencies": {
"@azure-tools/openai-typespec": "1.11.0",
"@azure-tools/typespec-autorest": "0.65.0",
"@azure-tools/typespec-azure-core": "0.65.0",
"@azure-tools/typespec-azure-resource-manager": "0.65.0",
"@azure-tools/typespec-azure-rulesets": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.4",
"@azure-tools/typespec-autorest": "0.66.0",
"@azure-tools/typespec-azure-core": "0.66.0",
"@azure-tools/typespec-azure-resource-manager": "0.66.0",
"@azure-tools/typespec-azure-rulesets": "0.66.0",
"@azure-tools/typespec-client-generator-core": "0.66.2",
"@azure-tools/typespec-liftr-base": "0.12.0",
"@typespec/compiler": "1.9.0",
"@typespec/http": "1.9.1",
"@typespec/openapi": "1.9.0",
"@typespec/rest": "0.79.0",
"@typespec/versioning": "0.79.0",
"@typespec/xml": "0.79.0",
"@typespec/openapi3": "1.9.0"
"@typespec/compiler": "1.10.0",
"@typespec/http": "1.10.0",
"@typespec/openapi": "1.10.0",
"@typespec/rest": "0.80.0",
"@typespec/versioning": "0.80.0",
"@typespec/xml": "0.80.0",
"@typespec/openapi3": "1.10.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class InputItemCodeInterpreterToolCall extends InputItem {
* `interpreting`, and `failed`.
*/
@Generated
private final OutputItemCodeInterpreterToolCallStatus status;
private final ItemResourceCodeInterpreterToolCallStatus status;

/*
* The ID of the container used to run the code.
Expand All @@ -57,25 +57,6 @@ public final class InputItemCodeInterpreterToolCall extends InputItem {
@Generated
private final List<BinaryData> outputs;

/**
* Creates an instance of InputItemCodeInterpreterToolCall class.
*
* @param id the id value to set.
* @param status the status value to set.
* @param containerId the containerId value to set.
* @param code the code value to set.
* @param outputs the outputs value to set.
*/
@Generated
public InputItemCodeInterpreterToolCall(String id, OutputItemCodeInterpreterToolCallStatus status,
String containerId, String code, List<BinaryData> outputs) {
this.id = id;
this.status = status;
this.containerId = containerId;
this.code = code;
this.outputs = outputs;
}

/**
* Get the type property: The type property.
*
Expand Down Expand Up @@ -104,7 +85,7 @@ public String getId() {
* @return the status value.
*/
@Generated
public OutputItemCodeInterpreterToolCallStatus getStatus() {
public ItemResourceCodeInterpreterToolCallStatus getStatus() {
return this.status;
}

Expand Down Expand Up @@ -173,7 +154,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
public static InputItemCodeInterpreterToolCall fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
String id = null;
OutputItemCodeInterpreterToolCallStatus status = null;
ItemResourceCodeInterpreterToolCallStatus status = null;
String containerId = null;
String code = null;
List<BinaryData> outputs = null;
Expand All @@ -184,7 +165,7 @@ public static InputItemCodeInterpreterToolCall fromJson(JsonReader jsonReader) t
if ("id".equals(fieldName)) {
id = reader.getString();
} else if ("status".equals(fieldName)) {
status = OutputItemCodeInterpreterToolCallStatus.fromString(reader.getString());
status = ItemResourceCodeInterpreterToolCallStatus.fromString(reader.getString());
} else if ("container_id".equals(fieldName)) {
containerId = reader.getString();
} else if ("code".equals(fieldName)) {
Expand All @@ -204,4 +185,23 @@ public static InputItemCodeInterpreterToolCall fromJson(JsonReader jsonReader) t
return deserializedInputItemCodeInterpreterToolCall;
});
}

/**
* Creates an instance of InputItemCodeInterpreterToolCall class.
*
* @param id the id value to set.
* @param status the status value to set.
* @param containerId the containerId value to set.
* @param code the code value to set.
* @param outputs the outputs value to set.
*/
@Generated
public InputItemCodeInterpreterToolCall(String id, ItemResourceCodeInterpreterToolCallStatus status,
String containerId, String code, List<BinaryData> outputs) {
this.id = id;
this.status = status;
this.containerId = containerId;
this.code = code;
this.outputs = outputs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,26 +55,7 @@ public final class InputItemComputerToolCall extends InputItem {
* `incomplete`. Populated when items are returned via API.
*/
@Generated
private final OutputItemComputerToolCallStatus status;

/**
* Creates an instance of InputItemComputerToolCall class.
*
* @param id the id value to set.
* @param callId the callId value to set.
* @param action the action value to set.
* @param pendingSafetyChecks the pendingSafetyChecks value to set.
* @param status the status value to set.
*/
@Generated
public InputItemComputerToolCall(String id, String callId, ComputerAction action,
List<ComputerCallSafetyCheckParam> pendingSafetyChecks, OutputItemComputerToolCallStatus status) {
this.id = id;
this.callId = callId;
this.action = action;
this.pendingSafetyChecks = pendingSafetyChecks;
this.status = status;
}
private final ItemResourceComputerToolCallStatus status;

/**
* Get the type property: The type property.
Expand Down Expand Up @@ -134,7 +115,7 @@ public List<ComputerCallSafetyCheckParam> getPendingSafetyChecks() {
* @return the status value.
*/
@Generated
public OutputItemComputerToolCallStatus getStatus() {
public ItemResourceComputerToolCallStatus getStatus() {
return this.status;
}

Expand Down Expand Up @@ -171,7 +152,7 @@ public static InputItemComputerToolCall fromJson(JsonReader jsonReader) throws I
String callId = null;
ComputerAction action = null;
List<ComputerCallSafetyCheckParam> pendingSafetyChecks = null;
OutputItemComputerToolCallStatus status = null;
ItemResourceComputerToolCallStatus status = null;
InputItemType type = InputItemType.COMPUTER_CALL;
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
Expand All @@ -185,7 +166,7 @@ public static InputItemComputerToolCall fromJson(JsonReader jsonReader) throws I
} else if ("pending_safety_checks".equals(fieldName)) {
pendingSafetyChecks = reader.readArray(reader1 -> ComputerCallSafetyCheckParam.fromJson(reader1));
} else if ("status".equals(fieldName)) {
status = OutputItemComputerToolCallStatus.fromString(reader.getString());
status = ItemResourceComputerToolCallStatus.fromString(reader.getString());
} else if ("type".equals(fieldName)) {
type = InputItemType.fromString(reader.getString());
} else {
Expand All @@ -198,4 +179,23 @@ public static InputItemComputerToolCall fromJson(JsonReader jsonReader) throws I
return deserializedInputItemComputerToolCall;
});
}

/**
* Creates an instance of InputItemComputerToolCall class.
*
* @param id the id value to set.
* @param callId the callId value to set.
* @param action the action value to set.
* @param pendingSafetyChecks the pendingSafetyChecks value to set.
* @param status the status value to set.
*/
@Generated
public InputItemComputerToolCall(String id, String callId, ComputerAction action,
List<ComputerCallSafetyCheckParam> pendingSafetyChecks, ItemResourceComputerToolCallStatus status) {
this.id = id;
this.callId = callId;
this.action = action;
this.pendingSafetyChecks = pendingSafetyChecks;
this.status = status;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class InputItemFileSearchToolCall extends InputItem {
* `searching`, `incomplete` or `failed`,
*/
@Generated
private final OutputItemFileSearchToolCallStatus status;
private final ItemResourceFileSearchToolCallStatus status;

/*
* The queries used to search for files.
Expand All @@ -51,20 +51,6 @@ public final class InputItemFileSearchToolCall extends InputItem {
@Generated
private List<FileSearchToolCallResults> results;

/**
* Creates an instance of InputItemFileSearchToolCall class.
*
* @param id the id value to set.
* @param status the status value to set.
* @param queries the queries value to set.
*/
@Generated
public InputItemFileSearchToolCall(String id, OutputItemFileSearchToolCallStatus status, List<String> queries) {
this.id = id;
this.status = status;
this.queries = queries;
}

/**
* Get the type property: The type property.
*
Expand Down Expand Up @@ -93,7 +79,7 @@ public String getId() {
* @return the status value.
*/
@Generated
public OutputItemFileSearchToolCallStatus getStatus() {
public ItemResourceFileSearchToolCallStatus getStatus() {
return this.status;
}

Expand Down Expand Up @@ -157,7 +143,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
public static InputItemFileSearchToolCall fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
String id = null;
OutputItemFileSearchToolCallStatus status = null;
ItemResourceFileSearchToolCallStatus status = null;
List<String> queries = null;
InputItemType type = InputItemType.FILE_SEARCH_CALL;
List<FileSearchToolCallResults> results = null;
Expand All @@ -167,7 +153,7 @@ public static InputItemFileSearchToolCall fromJson(JsonReader jsonReader) throws
if ("id".equals(fieldName)) {
id = reader.getString();
} else if ("status".equals(fieldName)) {
status = OutputItemFileSearchToolCallStatus.fromString(reader.getString());
status = ItemResourceFileSearchToolCallStatus.fromString(reader.getString());
} else if ("queries".equals(fieldName)) {
queries = reader.readArray(reader1 -> reader1.getString());
} else if ("type".equals(fieldName)) {
Expand All @@ -185,4 +171,18 @@ public static InputItemFileSearchToolCall fromJson(JsonReader jsonReader) throws
return deserializedInputItemFileSearchToolCall;
});
}

/**
* Creates an instance of InputItemFileSearchToolCall class.
*
* @param id the id value to set.
* @param status the status value to set.
* @param queries the queries value to set.
*/
@Generated
public InputItemFileSearchToolCall(String id, ItemResourceFileSearchToolCallStatus status, List<String> queries) {
this.id = id;
this.status = status;
this.queries = queries;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class InputItemFunctionToolCall extends InputItem {
* `incomplete`. Populated when items are returned via API.
*/
@Generated
private OutputItemFunctionToolCallStatus status;
private ItemResourceFunctionToolCallResourceStatus status;

/**
* Creates an instance of InputItemFunctionToolCall class.
Expand Down Expand Up @@ -140,23 +140,10 @@ public String getArguments() {
* @return the status value.
*/
@Generated
public OutputItemFunctionToolCallStatus getStatus() {
public ItemResourceFunctionToolCallResourceStatus getStatus() {
return this.status;
}

/**
* Set the status property: The status of the item. One of `in_progress`, `completed`, or
* `incomplete`. Populated when items are returned via API.
*
* @param status the status value to set.
* @return the InputItemFunctionToolCall object itself.
*/
@Generated
public InputItemFunctionToolCall setStatus(OutputItemFunctionToolCallStatus status) {
this.status = status;
return this;
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -190,7 +177,7 @@ public static InputItemFunctionToolCall fromJson(JsonReader jsonReader) throws I
String arguments = null;
InputItemType type = InputItemType.FUNCTION_CALL;
String id = null;
OutputItemFunctionToolCallStatus status = null;
ItemResourceFunctionToolCallResourceStatus status = null;
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
Expand All @@ -205,7 +192,7 @@ public static InputItemFunctionToolCall fromJson(JsonReader jsonReader) throws I
} else if ("id".equals(fieldName)) {
id = reader.getString();
} else if ("status".equals(fieldName)) {
status = OutputItemFunctionToolCallStatus.fromString(reader.getString());
status = ItemResourceFunctionToolCallResourceStatus.fromString(reader.getString());
} else {
reader.skipChildren();
}
Expand All @@ -218,4 +205,17 @@ public static InputItemFunctionToolCall fromJson(JsonReader jsonReader) throws I
return deserializedInputItemFunctionToolCall;
});
}

/**
* Set the status property: The status of the item. One of `in_progress`, `completed`, or
* `incomplete`. Populated when items are returned via API.
*
* @param status the status value to set.
* @return the InputItemFunctionToolCall object itself.
*/
@Generated
public InputItemFunctionToolCall setStatus(ItemResourceFunctionToolCallResourceStatus status) {
this.status = status;
return this;
}
}
Loading
Loading