发布

  • Support AssistantDefinition contract in executor (#1657)

    frostbyte_neo 发布于 2024-01-08 06:59:26 +00:00

    Description

    This pull request supported AssistantDefinition contract in executor.
    The most important changes include introducing a new
    AssistantDefinition class and modifying methods to handle conversions
    and placeholders.

    Main interface changes:

    src/promptflow/promptflow/contracts/types.py:
    Added a new AssistantDefinition class.
    *
    src/promptflow/promptflow/executor/_tool_resolver.py:
    Added a new method _convert_to_assistant_definition and made changes
    to handle the conversion of values to assistant definitions.
    *
    src/promptflow/promptflow/executor/_assistant_tool_invoker.py:
    Added a new setup method to the AssistantToolInvoker class.
    *
    src/promptflow/promptflow/contracts/tool.py:
    Added support for the AssistantDefinition class as an input type in
    the tool decorator.

    All Promptflow Contribution checklist:

    • The pull request does not introduce [breaking changes].
    • CHANGELOG is updated for new features, bug fixes or other
      significant changes.
    • I have read the contribution guidelines.
    • Create an issue and link to the pull request to get dedicated
      review from promptflow team. Learn more: suggested
      workflow
      .

    General Guidelines and Best Practices

    • Title of the pull request is clear and informative.
    • There are a small number of commits, each of which have an
      informative message. This means that previously merged commits do not
      appear in the history of the PR. For more information on cleaning up the
      commits in your PR, see this
      page
      .

    Testing Guidelines

    • Pull request includes test coverage for the included changes.

    Co-authored-by: Lina Tang linatang@microsoft.com

    下载附件