Programmatically update Docstring
まだ誰も着手していません。
評価
調査の方向性
まず、@bundle 関数が bundled_function.description、bundled_function.info['doc']、bundled_function._fun.doc をどのように公開しているかを追跡し、次に function-node のパラメータと関連する optimizer がそれらの値をどのように使用するかを追跡します。完了とは、テンプレート化された docstring を提供でき、そのレンダリングされたテキストが function node のパラメータと関連する optimizer の両方に表示される、サポートされた方法があることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I want to use Trace to build an application to let non-engineers optimized code for certain tasks. Ideally I would like to have an f-string in place of the docstring for a number of bundled functions that are methods on classes decorated by @model but of course python requires docstrings be a string literal. I'm REALLY trying to avoid resorting to a templating library for this. Currently I am trying to update the docstring of a number of bundled functions through some combination of bundled_function.description bundled_function.info['doc'] bundled_function._fun.__doc__ but so far no matter what I do I can't see the new docstring in the parameters of either the function node or in the associated optimizers.
Do you all have a suggestion of how I could implement a templated docstring? For reference here's a SUPER minimal example of what I mean:
@bundle some_func(input_data):
f"""input_data is {data_description}.
You need to {task_description}.
Make sure you don't {caveats_description}.
"""
pass
- 主要言語
- Python
- スター
- 760
- フォーク
- 63
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/Trace のほかの issue
-
Add reset() to trace.model再び着手できるかも @allenanie が 551 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoft/Trace の issue をすべて見る
似ている issue
-
docs pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
pydantic/pydantic-ai#8863 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
run-llama/llama_index#23278 ·
メンテナーはふだん 2 日以内に返信
-
documentation from-review-extraction github-actions priority: low severity:nit
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
LearningCircuit/local-deep-research#6946 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
oracle/langchain-oracle#323 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
tenstorrent/tt-metal#58057 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信