Issue Obtaining Agent Schema
まだ誰も着手していません。
評価
調査の方向性
issue に示されている glean.client.agents.retrieve(agent_id="") の呼び出しから始め、返されるモデルをドキュメントに記載されたレスポンスおよび curl のレスポンスと比較します。Python クライアントで input_schema と output_schema がどのように表現されているかを確認します。エンドポイントから返されたエージェントスキーマがクライアントのレスポンスに正確に公開され、報告されたレスポンス形式がカバレッジされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When using this python block to obtain an agent's schema as hosted on the docs:
from glean.api_client import Glean
import os
with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
server_url="https://mycompany-be.glean.com",
) as glean:
res = glean.client.agents.retrieve(agent_id="<id>")
# Handle response
print(res)
This gives me this current output:
agent_id='3fc1d69087e84a.....' input_schema=InputSchema() output_schema=OutputSchema()
Which does not match for the list of an agents schema example response:
{
"agent_id": "mho4lwzylcozgoc2",
"name": "HR Policy Agent",
"input_schema": {},
"output_schema": {},
"tools": [
{
"tool_id": "string",
"display_name": "string",
"type": "string",
"auth_type": "string",
"write_action_type": "string",
"is_setup_finished": true,
"data_source": "string"
}
]
}
This is the response I receive when curling:
{"agent_id":"c491df2fb3........","name":"[Sales] UMF Advisor","input_schema":{},"output_schema":{"$defs":{"ContentType":{"description":"The type of content block.","enum":["text"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"messages":{"items":{"properties":{"content":{"description":"The content of the message.","items":{"properties":{"text":{"type":"string"},"type":{"$ref":"#/$defs/ContentType"}},"required":["text","type"],"title":"MessageTextBlock","type":"object"},"title":"Content","type":"array"},"role":{"description":"The role of the message.","title":"Role","type":"string"}},"title":"Message","type":"object"},"type":"array"}},"required":["messages"],"title":"AgentResponse","type":"object"}}
I understand that these api endpoints are in beta, but is there any communication about updates regarding this endpoint or the other ones regarding agents?
Thank you.
- 主要言語
- Python
- スター
- 20
- フォーク
- 10
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 17
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gleanwork/api-client-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gleanwork/api-client-python#136 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
gleanwork/api-client-python#133 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
gleanwork/api-client-python#115 · コメント 4 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
gleanwork/api-client-python#105 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
gleanwork/api-client-python#57 · コメント 2 件 ·
gleanwork/api-client-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
use-agent-os/agent-os#3314 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
BasedHardware/omi#15662 · コメント 1 件 ·
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
AiursoftWeb/AnduinOS-2#19 ·