id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
4,175 | import contextlib
import functools
import threading
import uuid
from contextvars import ContextVar
from datetime import datetime
from typing import Any, Dict
from promptflow._sdk._telemetry.telemetry import TelemetryMixin
from promptflow._sdk._utils import ClientUserAgentUtil
from promptflow.exceptions import _ErrorInf... | A wrapper for monitoring an activity in operations class. To monitor, use the ``@monitor_operation`` decorator. Note: this decorator should only use in operations class methods. :param activity_name: The name of the activity. The name should be unique per the wrapped logical code block. :type activity_name: str :param ... |
4,176 | import logging
from typing import Optional
from promptflow._constants import USER_AGENT_OVERRIDE_KEY
from promptflow._sdk._configuration import Configuration
PROMPTFLOW_LOGGER_NAMESPACE = "promptflow._sdk._telemetry"
def is_telemetry_enabled():
"""Check if telemetry is enabled. Telemetry is enabled by default.
... | null |
4,177 | import functools
import logging
import os
import platform
import sys
from azure.monitor.opentelemetry.exporter import AzureMonitorLogExporter
from azure.monitor.opentelemetry.exporter._constants import _APPLICATION_INSIGHTS_EVENT_MARKER_ATTRIBUTE
from azure.monitor.opentelemetry.exporter._generated.models import Teleme... | Create cloud role for telemetry, will scrub user script name and only leave extension. |
4,178 | import functools
import logging
import os
import platform
import sys
from azure.monitor.opentelemetry.exporter import AzureMonitorLogExporter
from azure.monitor.opentelemetry.exporter._constants import _APPLICATION_INSIGHTS_EVENT_MARKER_ATTRIBUTE
from azure.monitor.opentelemetry.exporter._generated.models import Teleme... | Enable the opentelemetry logging handler for specified logger and instrumentation key to send info to AppInsights. |
4,179 | from flask import jsonify, make_response, request
from flask_restx import fields
from promptflow._sdk._service import Namespace, Resource
from promptflow._sdk._service.utils.utils import build_pfs_user_agent, local_user_only
from promptflow._sdk._telemetry import ActivityCompletionStatus, ActivityType
from promptflow._... | null |
4,180 | from flask import jsonify, make_response, request
from flask_restx import fields
from promptflow._sdk._service import Namespace, Resource
from promptflow._sdk._service.utils.utils import build_pfs_user_agent, local_user_only
from promptflow._sdk._telemetry import ActivityCompletionStatus, ActivityType
from promptflow._... | null |
4,181 | from flask import jsonify, make_response, request
from flask_restx import fields
from promptflow._sdk._service import Namespace, Resource
from promptflow._sdk._service.utils.utils import build_pfs_user_agent, local_user_only
from promptflow._sdk._telemetry import ActivityCompletionStatus, ActivityType
from promptflow._... | null |
4,182 | from flask import jsonify, make_response, request
from flask_restx import fields
from promptflow._sdk._service import Namespace, Resource
from promptflow._sdk._service.utils.utils import build_pfs_user_agent, local_user_only
from promptflow._sdk._telemetry import ActivityCompletionStatus, ActivityType
from promptflow._... | null |
4,183 | import json
import logging
import traceback
from datetime import datetime
from typing import Callable
from flask import request
from google.protobuf.json_format import MessageToJson
from opentelemetry.proto.collector.trace.v1.trace_service_pb2 import ExportTraceServiceRequest
from promptflow._constants import (
Cos... | This function is target to be reused in other places, so pass in get_created_by_info_with_cache and logger to avoid app related dependencies. Args: get_created_by_info_with_cache (Callable): A function that retrieves information about the creator of the trace. logger (logging.Logger): The logger object used for logging... |
4,184 | import inspect
from pathlib import Path
from flask import jsonify, request
import promptflow._sdk.schemas._connection as connection
from promptflow._sdk._configuration import Configuration
from promptflow._sdk._service import Namespace, Resource, fields
from promptflow._sdk._service.utils.utils import get_client_from_r... | null |
4,185 | import inspect
from pathlib import Path
from flask import jsonify, request
import promptflow._sdk.schemas._connection as connection
from promptflow._sdk._configuration import Configuration
from promptflow._sdk._service import Namespace, Resource, fields
from promptflow._sdk._service.utils.utils import get_client_from_r... | null |
4,186 | import logging
import threading
import time
from datetime import datetime, timedelta
from logging.handlers import RotatingFileHandler
from flask import Blueprint, Flask, current_app, g, jsonify, request
from flask_cors import CORS
from werkzeug.exceptions import HTTPException
from promptflow._sdk._constants import (
... | null |
4,187 | from promptflow._sdk._service.entry import main
import sys
import win32serviceutil
import win32service
import servicemanager
class PromptFlowServiceFramework(win32serviceutil.ServiceFramework):
_svc_name_ = "PromptFlowService"
_svc_display_name_ = "Prompt Flow Service"
def SvcStop(self):
"""Stop ... | null |
4,188 | import argparse
import json
import logging
import os
import platform
import subprocess
import sys
import waitress
from promptflow._cli._utils import _get_cli_activity_name, cli_exception_and_telemetry_handler
from promptflow._constants import PF_NO_INTERACTIVE_LOGIN
from promptflow._sdk._constants import LOGGER_NAME, P... | null |
4,189 | import argparse
import json
import logging
import os
import platform
import subprocess
import sys
import waitress
from promptflow._cli._utils import _get_cli_activity_name, cli_exception_and_telemetry_handler
from promptflow._constants import PF_NO_INTERACTIVE_LOGIN
from promptflow._sdk._constants import LOGGER_NAME, P... | null |
4,190 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,191 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,192 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,193 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,194 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,195 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,196 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,197 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | null |
4,198 | import getpass
import hashlib
import os
import re
import socket
import sys
import time
from dataclasses import InitVar, dataclass, field
from datetime import datetime
from functools import wraps
from pathlib import Path
import psutil
import requests
from flask import abort, make_response, request
from promptflow._const... | Build a PFClient instance based on current request in local PFS. User agent may be different for each request. |
4,199 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | Add workspace arguments to subparsers. |
4,200 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,201 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,202 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,203 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,204 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,205 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,206 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,207 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,208 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | Catch known cli exceptions. |
4,209 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | Get secret input with mask printed on screen in CLI. Provide better handling for control characters: - Handle Ctrl-C as KeyboardInterrupt - Ignore control characters and print warning message. |
4,210 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,211 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,212 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,213 | import argparse
import contextlib
import json
import os
import shutil
import sys
import traceback
from configparser import ConfigParser
from functools import wraps
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import pydash
from dotenv import load_dotenv
from tabulate import tabulate
from prom... | null |
4,214 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_yes(parser):
parser.add_argument(
"-y",
"--yes",
"--assume-yes",
action="store_true",
help="Automatic yes to all prompts; assum... | null |
4,215 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_ua(parser):
# suppress user agent for now since it's only used in vscode extension
parser.add_argument("--user-agent", help=argparse.SUPPRESS) | null |
4,216 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_flow_display_name(parser):
parser.add_argument("--flow", type=str, required=True, help="The flow name to create.") | null |
4,217 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_entry(parser):
parser.add_argument("--entry", type=str, help="The entry file.") | null |
4,218 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_function(parser):
parser.add_argument("--function", type=str, help="The function name in entry file.") | null |
4,219 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,220 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,221 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,222 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,223 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,224 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,225 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,226 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class FlowTestInputAction(AppendToDictAction): # pylint: disable=protected-access
def get_action(self, values, option_string): # pylint: disable=no-self-use
if len(values) ... | null |
4,227 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_env(parser):
parser.add_argument(
"--env",
type=str,
default=None,
help="The dotenv file path containing the environment variables to b... | null |
4,228 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_output(parser):
parser.add_argument(
"-o",
"--output",
type=str,
help=(
f"The output directory to store the results. "
... | null |
4,229 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_overwrite(parser):
parser.add_argument("--overwrite", action="store_true", help="Overwrite the existing results.") | null |
4,230 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_run_name(parser):
parser.add_argument("-n", "--name", required=True, type=str, help="Name of the run.") | null |
4,231 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_connection_name(parser):
parser.add_argument("-n", "--name", type=str, help="Name of the connection to create.") | null |
4,232 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
MAX_LIST_CLI_RESULTS = 50
def add_param_max_results(parser):
parser.add_argument( # noqa: E731
"-r",
"--max-results",
dest="max_results",
type=int,
... | null |
4,233 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_all_results(parser):
parser.add_argument( # noqa: E731
"--all-results",
action="store_true",
dest="all_results",
default=False,
... | null |
4,234 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_source(parser):
parser.add_argument("--source", type=str, required=True, help="The flow or run source to be used.")
def add_param_variant(parser):
parser.add_argume... | null |
4,235 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_debug(parser):
parser.add_argument(
"-d",
"--debug",
action="store_true",
help="The flag to turn on debug mode for cli.",
) | null |
4,236 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_verbose(parser):
parser.add_argument(
"--verbose",
action="store_true",
help="Increase logging verbosity. Use --debug for full debug logs.",
... | null |
4,237 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_act... | null |
4,238 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_archived_only(parser):
parser.add_argument(
"--archived-only",
action="store_true",
help="Only list archived records.",
) | null |
4,239 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_include_archived(parser):
parser.add_argument(
"--include-archived",
action="store_true",
help="List both archived records and active records."... | null |
4,240 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_output_format(parser):
parser.add_argument(
"-o",
"--output",
type=str,
default=CLIListOutputFormat.JSON,
help="Output format, ... | null |
4,241 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_include_others(parser):
parser.add_argument(
"--include-others",
action="store_true",
help="Get records that are owned by all users.",
) | null |
4,242 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_flow_type(parser):
parser.add_argument(
"--type",
type=str,
help=(
f"The type of the flow. Available values are {FlowType.get_all_v... | null |
4,243 | import argparse
from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME, PROMPT_FLOW_RUNS_DIR_NAME, CLIListOutputFormat, FlowType
def add_param_flow_name(parser):
parser.add_argument(
"-n",
"--name",
type=str,
required=True,
help="The name of the flow.",
) | null |
4,244 | from typing import List
from promptflow import log_metric, tool
The provided code snippet includes necessary dependencies for implementing the `aggregate` function. Write a Python function `def aggregate(processed_results: List[str])` to solve the following problem:
This tool aggregates the processed result of all lin... | This tool aggregates the processed result of all lines and calculate the accuracy. Then log metric for the accuracy. :param processed_results: List of the output of line_process node. |
4,245 | from promptflow import tool
The provided code snippet includes necessary dependencies for implementing the `line_process` function. Write a Python function `def line_process(groundtruth: str, prediction: str)` to solve the following problem:
This tool processes the prediction of a single line and returns the processed... | This tool processes the prediction of a single line and returns the processed result. :param groundtruth: the groundtruth of a single line. :param prediction: the prediction of a single line. |
4,246 | from promptflow import tool
def my_python_tool(input1: str) -> str:
return "Prompt: " + input1 | null |
4,247 | from promptflow._cli._utils import get_client_for_cli
from promptflow.azure import PFClient
def _get_azure_pf_client(subscription_id, resource_group, workspace_name, debug=False):
ml_client = get_client_for_cli(
subscription_id=subscription_id, resource_group_name=resource_group, workspace_name=workspace_n... | null |
4,248 | from pathlib import Path
from dotenv import dotenv_values
from promptflow._cli._params import add_param_connection_name, add_param_env, base_params
from promptflow._cli._utils import _set_workspace_argument_for_subparsers, activate_action, get_client_for_cli
from promptflow._utils.logger_utils import get_cli_sdk_logger... | null |
4,249 | from pathlib import Path
from dotenv import dotenv_values
from promptflow._cli._params import add_param_connection_name, add_param_env, base_params
from promptflow._cli._utils import _set_workspace_argument_for_subparsers, activate_action, get_client_for_cli
from promptflow._utils.logger_utils import get_cli_sdk_logger... | null |
4,250 | from pathlib import Path
from dotenv import dotenv_values
from promptflow._cli._params import add_param_connection_name, add_param_env, base_params
from promptflow._cli._utils import _set_workspace_argument_for_subparsers, activate_action, get_client_for_cli
from promptflow._utils.logger_utils import get_cli_sdk_logger... | null |
4,251 | import argparse
import functools
import json
from typing import Dict, List, Optional
from promptflow._cli._params import (
add_param_all_results,
add_param_archived_only,
add_param_include_archived,
add_param_max_results,
add_param_output,
add_param_output_format,
add_param_overwrite,
ad... | Add run parser to the pfazure subparsers. |
4,252 | import argparse
import functools
import json
from typing import Dict, List, Optional
from promptflow._cli._params import (
add_param_all_results,
add_param_archived_only,
add_param_include_archived,
add_param_max_results,
add_param_output,
add_param_output_format,
add_param_overwrite,
ad... | null |
4,253 | import argparse
import json
from typing import Dict, List
from promptflow._cli._params import (
add_param_archived_only,
add_param_flow_name,
add_param_flow_type,
add_param_include_archived,
add_param_include_others,
add_param_max_results,
add_param_output_format,
add_param_set,
base... | Add flow parser to the pf subparsers. |
4,254 | import argparse
import json
from typing import Dict, List
from promptflow._cli._params import (
add_param_archived_only,
add_param_flow_name,
add_param_flow_type,
add_param_include_archived,
add_param_include_others,
add_param_max_results,
add_param_output_format,
add_param_set,
base... | Add flow download parser to the pf flow subparsers. |
4,255 | import argparse
import json
from typing import Dict, List
from promptflow._cli._params import (
add_param_archived_only,
add_param_flow_name,
add_param_flow_type,
add_param_include_archived,
add_param_include_others,
add_param_max_results,
add_param_output_format,
add_param_set,
base... | null |
4,256 | import argparse
import json
from typing import Dict, List
from promptflow._cli._params import (
add_param_archived_only,
add_param_flow_name,
add_param_flow_type,
add_param_include_archived,
add_param_include_others,
add_param_max_results,
add_param_output_format,
add_param_set,
base... | null |
4,257 | import json
import time
from promptflow._cli._pf.help import show_privacy_statement, show_welcome_message
from promptflow._cli._user_agent import USER_AGENT
from promptflow._cli._utils import _get_cli_activity_name, get_client_info_for_cli, cli_exception_and_telemetry_handler
import argparse
import logging
import sys... | Control plane CLI tools for promptflow cloud version. |
4,258 | import argparse
import json
from functools import partial
from promptflow._cli._params import (
add_param_all_results,
add_param_max_results,
add_param_set,
add_param_yes,
base_params,
)
from promptflow._cli._utils import activate_action, confirm, get_secret_input, print_yellow_warning
from promptfl... | null |
4,259 | import argparse
import json
from functools import partial
from promptflow._cli._params import (
add_param_all_results,
add_param_max_results,
add_param_set,
add_param_yes,
base_params,
)
from promptflow._cli._utils import activate_action, confirm, get_secret_input, print_yellow_warning
from promptfl... | null |
4,260 | import argparse
import json
from functools import partial
from promptflow._cli._params import (
add_param_all_results,
add_param_max_results,
add_param_set,
add_param_yes,
base_params,
)
from promptflow._cli._utils import activate_action, confirm, get_secret_input, print_yellow_warning
from promptfl... | null |
4,261 | import argparse
import json
from typing import Callable, Dict, List, Optional, Tuple
from promptflow._cli._params import (
add_param_all_results,
add_param_archived_only,
add_param_columns_mapping,
add_param_connections,
add_param_environment_variables,
add_param_include_archived,
add_param_... | null |
4,262 | import argparse
import json
from typing import Callable, Dict, List, Optional, Tuple
from promptflow._cli._params import (
add_param_all_results,
add_param_archived_only,
add_param_columns_mapping,
add_param_connections,
add_param_environment_variables,
add_param_include_archived,
add_param_... | null |
4,263 | import argparse
import json
from typing import Callable, Dict, List, Optional, Tuple
from promptflow._cli._params import (
add_param_all_results,
add_param_archived_only,
add_param_columns_mapping,
add_param_connections,
add_param_environment_variables,
add_param_include_archived,
add_param_... | null |
4,264 | import argparse
import json
from typing import Callable, Dict, List, Optional, Tuple
from promptflow._cli._params import (
add_param_all_results,
add_param_archived_only,
add_param_columns_mapping,
add_param_connections,
add_param_environment_variables,
add_param_include_archived,
add_param_... | null |
4,265 | import inspect
import json
import shutil
from abc import ABC, abstractmethod
from ast import literal_eval
from enum import Enum
from pathlib import Path
from jinja2 import Environment, Template, meta
from promptflow._sdk._constants import DEFAULT_ENCODING
from promptflow._sdk.operations._flow_operations import FlowOper... | null |
4,266 | import argparse
import json
from promptflow._cli._params import add_param_set_positional, base_params
from promptflow._cli._utils import activate_action, list_of_dict_to_dict
from promptflow._sdk._configuration import Configuration, InvalidConfigValue
from promptflow._sdk._utils import print_red_error
from promptflow._... | null |
4,267 | import argparse
import json
from promptflow._cli._params import add_param_set_positional, base_params
from promptflow._cli._utils import activate_action, list_of_dict_to_dict
from promptflow._sdk._configuration import Configuration, InvalidConfigValue
from promptflow._sdk._utils import print_red_error
from promptflow._... | null |
4,268 | import argparse
import json
from promptflow._cli._params import (
AppendToDictAction,
add_param_all_results,
add_param_archived_only,
add_param_include_archived,
add_param_max_results,
base_params,
)
from promptflow._cli._utils import activate_action, list_of_dict_to_dict
from promptflow._sdk._c... | null |
4,269 | import argparse
import json
from promptflow._cli._params import (
AppendToDictAction,
add_param_all_results,
add_param_archived_only,
add_param_include_archived,
add_param_max_results,
base_params,
)
from promptflow._cli._utils import activate_action, list_of_dict_to_dict
from promptflow._sdk._c... | null |
4,270 | import argparse
import json
from promptflow._cli._params import (
AppendToDictAction,
add_param_all_results,
add_param_archived_only,
add_param_include_archived,
add_param_max_results,
base_params,
)
from promptflow._cli._utils import activate_action, list_of_dict_to_dict
from promptflow._sdk._c... | null |
4,271 | import argparse
import json
import re
import shutil
import sys
from pathlib import Path
from promptflow._cli._params import add_param_set_tool_extra_info, base_params
from promptflow._cli._pf._init_entry_generators import (
InitGenerator,
SetupGenerator,
ToolPackageGenerator,
ToolPackageUtilsGenerator,
... | Add flow parser to the pf subparsers. |
4,272 | import argparse
import json
import re
import shutil
import sys
from pathlib import Path
from promptflow._cli._params import add_param_set_tool_extra_info, base_params
from promptflow._cli._pf._init_entry_generators import (
InitGenerator,
SetupGenerator,
ToolPackageGenerator,
ToolPackageUtilsGenerator,
... | null |
4,273 | import argparse
import importlib
import json
import os
import shutil
import subprocess
import sys
import tempfile
import webbrowser
from pathlib import Path
from promptflow._cli._params import (
add_param_config,
add_param_entry,
add_param_environment_variables,
add_param_flow_display_name,
add_para... | Add flow parser to the pf subparsers. |
4,274 | import argparse
import importlib
import json
import os
import shutil
import subprocess
import sys
import tempfile
import webbrowser
from pathlib import Path
from promptflow._cli._params import (
add_param_config,
add_param_entry,
add_param_environment_variables,
add_param_flow_display_name,
add_para... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.