Chat demo App: How to fetch function arguments on the view?
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the Chat demo’s message model and view, especially the case .function rendering shown in the issue, then trace where function-call arguments are stored in the Swift package. The request is to make individual arguments available to the view for uses such as tables or graphs; done means the demo can access a requested property such as degrees. The issue has had no comment for 529 days, so confirm the approach with maintainers before starting.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Would be great to be able to fetch function arguments on the view.
Describe the solution you'd like
When defined:
let weatherFunction = ChatFunctionDeclaration(
name: "getWeatherData",
description: "Get the current weather in a given location",
parameters: .init(
type: .object,
properties: [
"location": .init(type: .string, description: "The city and state, e.g. San Francisco, CA"),
"degrees": .init(type: .string, description: "The degrees, in celsius. Ex: 10c")
],
required: ["location"]
)
)
When prompted "show me the weather in San Francisco"...
Current demo app shows the on the bubble: message.content
Would be great to be able to fetch the property, ex: function.degrees.
This would enable to place specific function properties on tables, graphs, etc...
var body: some View {
HStack {
switch message.role {
case .assistant:
Text(message.content)
.padding(.horizontal, 16)
.padding(.vertical, 12)
.background(assistantBackgroundColor)
.clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous))
Spacer(minLength: 24)
case .user:
Spacer(minLength: 24)
Text(message.content)
.padding(.horizontal, 16)
.padding(.vertical, 12)
.foregroundColor(userForegroundColor)
.background(userBackgroundColor)
.clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous))
case .function:
Text(message.content)
.font(.footnote.monospaced())
.padding(.horizontal, 16)
.padding(.vertical, 12)
.background(funcBackgroundColor)
.clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous))
Spacer(minLength: 24)
case .system:
EmptyView()
}
}
}
- 主要言語
- Swift
- スター
- 2.9k
- フォーク
- 519
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MacPaw/OpenAI のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
Enable batch promptsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MacPaw/OpenAI#73 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
Demo release check 2026-10-27: failures, skips and notes対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
MacPaw/OpenAI#478 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AttilaTheFun/visor#244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
abue-ammar/tinycast#1819 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: cua-driver skill fails Agent Skills frontmatter validation対応中かも @Mearman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
follow-up needs-triage S3: minor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#36856 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type:defect
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
snowplow/snowplow-ios-tracker#962 ·