Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/microsoft/promptflow into d…
Browse files Browse the repository at this point in the history
…evs/peiwen/add_error_handling
  • Loading branch information
PeiwenGaoMS committed Dec 6, 2023
2 parents b3afe48 + f3df018 commit cbb05d9
Show file tree
Hide file tree
Showing 3 changed files with 444 additions and 392 deletions.
1 change: 0 additions & 1 deletion src/promptflow/promptflow/_sdk/entities/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def __init__(
self._lineage_id = None
if self._use_remote_flow:
self._flow_name = parse_remote_flow_pattern(flow)
self._experiment_name = self._flow_name
self._lineage_id = self._flow_name
# default run name: flow directory name + timestamp
self.name = name or self._generate_run_name()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ interactions:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-10-10.0.22631-SP0)
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.9.18 (Windows-10-10.0.22631-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000
response:
Expand Down Expand Up @@ -39,7 +39,7 @@ interactions:
x-content-type-options:
- nosniff
x-request-time:
- '0.020'
- '0.019'
status:
code: 200
message: OK
Expand All @@ -49,12 +49,12 @@ interactions:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-10-10.0.22631-SP0)
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.9.18 (Windows-10-10.0.22631-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores?count=30&isDefault=true&orderByAsc=false
response:
Expand Down Expand Up @@ -91,7 +91,7 @@ interactions:
x-content-type-options:
- nosniff
x-request-time:
- '0.065'
- '0.085'
status:
code: 200
message: OK
Expand All @@ -101,12 +101,12 @@ interactions:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-10-10.0.22631-SP0)
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.9.18 (Windows-10-10.0.22631-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore
response:
Expand Down Expand Up @@ -143,7 +143,7 @@ interactions:
x-content-type-options:
- nosniff
x-request-time:
- '0.060'
- '0.076'
status:
code: 200
message: OK
Expand All @@ -153,14 +153,14 @@ interactions:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-10-10.0.22631-SP0)
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.9.18 (Windows-10-10.0.22631-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets
response:
Expand All @@ -184,7 +184,7 @@ interactions:
x-content-type-options:
- nosniff
x-request-time:
- '0.070'
- '0.091'
status:
code: 200
message: OK
Expand All @@ -194,15 +194,15 @@ interactions:
Accept:
- application/xml
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- azsdk-python-storage-blob/12.19.0 Python/3.10.13 (Windows-10-10.0.22631-SP0)
- azsdk-python-storage-blob/12.18.1 Python/3.9.18 (Windows-10-10.0.22631-SP0)
x-ms-date:
- Thu, 30 Nov 2023 05:45:09 GMT
- Tue, 05 Dec 2023 10:59:47 GMT
x-ms-version:
- '2023-11-03'
- '2023-08-03'
method: HEAD
uri: https://fake_account_name.blob.core.windows.net/fake-container-name/LocalUpload/000000000000000000000000000000000000/simple_hello_world.jsonl
response:
Expand Down Expand Up @@ -234,7 +234,7 @@ interactions:
x-ms-meta-version:
- 2266d840-3ecd-4a91-9e63-8d57e7b0a62e
x-ms-version:
- '2023-11-03'
- '2023-08-03'
status:
code: 200
message: OK
Expand All @@ -244,15 +244,15 @@ interactions:
Accept:
- application/xml
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- azsdk-python-storage-blob/12.19.0 Python/3.10.13 (Windows-10-10.0.22631-SP0)
- azsdk-python-storage-blob/12.18.1 Python/3.9.18 (Windows-10-10.0.22631-SP0)
x-ms-date:
- Thu, 30 Nov 2023 05:45:10 GMT
- Tue, 05 Dec 2023 10:59:48 GMT
x-ms-version:
- '2023-11-03'
- '2023-08-03'
method: HEAD
uri: https://fake_account_name.blob.core.windows.net/fake-container-name/az-ml-artifacts/000000000000000000000000000000000000/simple_hello_world.jsonl
response:
Expand All @@ -268,14 +268,13 @@ interactions:
x-ms-error-code:
- BlobNotFound
x-ms-version:
- '2023-11-03'
- '2023-08-03'
status:
code: 404
message: The specified blob does not exist.
- request:
body: '{"flowDefinitionResourceId": "azureml://registries/promptflow-preview/models/simple_hello_world/versions/202311241",
"runId": "name", "runDisplayName": "name", "runExperimentName": "", "batchDataInput":
{"dataUri": "azureml://datastores/workspaceblobstore/paths/LocalUpload/000000000000000000000000000000000000/simple_hello_world.jsonl"},
"runId": "name", "runDisplayName": "name", "batchDataInput": {"dataUri": "azureml://datastores/workspaceblobstore/paths/LocalUpload/000000000000000000000000000000000000/simple_hello_world.jsonl"},
"inputsMapping": {"name": "${data.name}"}, "connections": {}, "environmentVariables":
{}, "runtimeName": "fake-runtime-name", "sessionId": "000000000000000000000000000000000000000000000000",
"flowLineageId": "0000000000000000000000000000000000000000000000000000000000000000",
Expand All @@ -284,16 +283,16 @@ interactions:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
Content-Length:
- '660'
- '615'
Content-Type:
- application/json
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azsdk-python-azuremachinelearningdesignerserviceclient/unknown
Python/3.10.13 (Windows-10-10.0.22631-SP0)
Python/3.9.18 (Windows-10-10.0.22631-SP0)
method: POST
uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/BulkRuns/submit
response:
Expand All @@ -311,7 +310,7 @@ interactions:
x-content-type-options:
- nosniff
x-request-time:
- '11.191'
- '14.145'
status:
code: 200
message: OK
Expand All @@ -322,7 +321,7 @@ interactions:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Connection:
- keep-alive
Content-Length:
Expand All @@ -335,34 +334,34 @@ interactions:
uri: https://eastus.api.azureml.ms/history/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/rundata
response:
body:
string: '{"runMetadata": {"runNumber": 1701323118, "rootRunId": "name", "createdUtc":
"2023-11-30T05:45:18.0097542+00:00", "createdBy": {"userObjectId": "00000000-0000-0000-0000-000000000000",
"userPuId": null, "userIdp": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/",
"userAltSecId": null, "userIss": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/",
"userTenantId": "00000000-0000-0000-0000-000000000000", "userName": "4cbd0e2e-aae4-4099-b4ba-94d3a4910587",
"upn": null}, "userId": "00000000-0000-0000-0000-000000000000", "token": null,
"tokenExpiryTimeUtc": null, "error": null, "warnings": null, "revision": 3,
"statusRevision": 1, "runUuid": "50291e12-5d87-4711-9f36-95ca333cb507", "parentRunUuid":
null, "rootRunUuid": "50291e12-5d87-4711-9f36-95ca333cb507", "lastStartTimeUtc":
string: '{"runMetadata": {"runNumber": 1701773992, "rootRunId": "name", "createdUtc":
"2023-12-05T10:59:52.9671136+00:00", "createdBy": {"userObjectId": "00000000-0000-0000-0000-000000000000",
"userPuId": "10032000324F7449", "userIdp": null, "userAltSecId": null, "userIss":
"https://sts.windows.net/00000000-0000-0000-0000-000000000000/", "userTenantId":
"00000000-0000-0000-0000-000000000000", "userName": "Honglin Du", "upn": null},
"userId": "00000000-0000-0000-0000-000000000000", "token": null, "tokenExpiryTimeUtc":
null, "error": null, "warnings": null, "revision": 3, "statusRevision": 1,
"runUuid": "43f6dd3a-b9cf-4cd9-8f3f-0fe03c249e68", "parentRunUuid": null,
"rootRunUuid": "43f6dd3a-b9cf-4cd9-8f3f-0fe03c249e68", "lastStartTimeUtc":
null, "currentComputeTime": "00:00:00", "computeDuration": null, "effectiveStartTimeUtc":
null, "lastModifiedBy": {"userObjectId": "00000000-0000-0000-0000-000000000000",
"userPuId": null, "userIdp": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/",
"userAltSecId": null, "userIss": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/",
"userTenantId": "00000000-0000-0000-0000-000000000000", "userName": "4cbd0e2e-aae4-4099-b4ba-94d3a4910587",
"upn": null}, "lastModifiedUtc": "2023-11-30T05:45:22.7839171+00:00", "duration":
null, "cancelationReason": null, "currentAttemptId": 1, "runId": "name", "parentRunId":
null, "experimentId": "e57eb79e-3e83-45f1-810c-ee22c20b2ebd", "status": "Preparing",
"userPuId": "10032000324F7449", "userIdp": null, "userAltSecId": null, "userIss":
"https://sts.windows.net/00000000-0000-0000-0000-000000000000/", "userTenantId":
"00000000-0000-0000-0000-000000000000", "userName": "Honglin Du", "upn": null},
"lastModifiedUtc": "2023-12-05T11:00:03.4532896+00:00", "duration": null,
"cancelationReason": null, "currentAttemptId": 1, "runId": "name", "parentRunId":
null, "experimentId": "8ed8abac-3b31-48a5-9fa1-81b7fe487f46", "status": "Preparing",
"startTimeUtc": null, "endTimeUtc": null, "scheduleId": null, "displayName":
"name", "name": null, "dataContainerId": "dcid.name", "description": null,
"hidden": false, "runType": "azureml.promptflow.FlowRun", "runTypeV2": {"orchestrator":
null, "traits": [], "attribution": "PromptFlow", "computeType": "MIR_v2"},
"properties": {"azureml.promptflow.runtime_name": "demo-mir", "azureml.promptflow.runtime_version":
"20231011.v2", "azureml.promptflow.definition_file_name": "flow.dag.yaml",
null, "traits": [], "attribution": "PromptFlow", "computeType": "AmlcDsi"},
"properties": {"azureml.promptflow.runtime_name": "hod-ci", "azureml.promptflow.runtime_version":
"20231114.v2", "azureml.promptflow.definition_file_name": "flow.dag.yaml",
"azureml.promptflow.session_id": "simple_hello_world", "azureml.promptflow.flow_lineage_id":
"simple_hello_world", "azureml.promptflow.flow_definition_resource_id": "azureml://registries/promptflow-preview/models/simple_hello_world/versions/202311241",
"azureml.promptflow.input_data": "azureml://datastores/workspaceblobstore/paths/LocalUpload/79f088fae0e502653c43146c9682f425/simple_hello_world.jsonl",
"azureml.promptflow.inputs_mapping": "{\"name\":\"${data.name}\"}", "_azureml.evaluation_run":
"promptflow.BatchRun", "azureml.promptflow.snapshot_id": "f100f503-ad80-4976-8c2a-fcbef4189bfb"},
"promptflow.BatchRun", "azureml.promptflow.snapshot_id": "08c2b30f-de87-4183-9733-38e6cc01614e"},
"parameters": {}, "actionUris": {}, "scriptName": null, "target": null, "uniqueChildRunComputeTargets":
[], "tags": {}, "settings": {}, "services": {}, "inputDatasets": [], "outputDatasets":
[], "runDefinition": null, "jobSpecification": null, "primaryMetricName":
Expand All @@ -373,7 +372,18 @@ interactions:
"Tool": null, "Path": "hello_world.py"}, "Inputs": {"name": "${inputs.name}"},
"Tool": "hello_world.py", "Reduce": false, "Activate": null, "Comment": null,
"Api": null, "Provider": null, "Connection": null, "Module": null}], "Tools":
[], "Codes": null, "Inputs": {"name": {"name": null, "type": "string", "default":
[{"Name": "hello_world.py", "Type": "python", "Inputs": {"name": {"Name":
null, "Type": ["string"], "Default": null, "Description": null, "Enum": null,
"enabled_by": null, "enabled_by_type": null, "enabled_by_value": null, "model_list":
null, "Capabilities": null, "dynamic_list": null, "allow_manual_entry": false,
"is_multi_select": false, "generated_by": null, "input_type": "default", "advanced":
null, "ui_hints": null}}, "Outputs": null, "Description": null, "connection_type":
null, "Module": null, "class_name": null, "Source": "hello_world.py", "LkgCode":
null, "Code": null, "Function": "hello_world", "action_type": null, "provider_config":
null, "function_config": null, "Icon": null, "Category": null, "Tags": null,
"is_builtin": false, "package": null, "package_version": null, "default_prompt":
null, "enable_kwargs": false, "deprecated_tools": null, "tool_state": "stable"}],
"Codes": null, "Inputs": {"name": {"name": null, "type": "string", "default":
"hod", "description": null, "is_chat_input": false, "is_chat_history": null}},
"Outputs": {"result": {"name": null, "type": "string", "description": null,
"reference": "${hello_world.output}", "evaluation_only": false, "is_chat_output":
Expand All @@ -382,7 +392,7 @@ interactions:
connection:
- keep-alive
content-length:
- '4751'
- '5980'
content-type:
- application/json; charset=utf-8
strict-transport-security:
Expand All @@ -394,7 +404,7 @@ interactions:
x-content-type-options:
- nosniff
x-request-time:
- '0.067'
- '0.066'
status:
code: 200
message: OK
Expand Down
Loading

0 comments on commit cbb05d9

Please sign in to comment.