Chat demo App: How to fetch function arguments on the view?
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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()
}
}
}
- Lenguaje dominante
- Swift
- Estrellas
- 2.9k
- Forks
- 519
- Merge medio
- 2 d 14 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MacPaw/OpenAI
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
Enable batch promptsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MacPaw/OpenAI#73 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 2 días
-
Wiz-remediation
Dificultad 5/5 Más de una semana Aptitud para principiantes 1/100
Los mantenedores suelen responder en 2 días
Todos los issues de MacPaw/OpenAI
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
manaflow-ai/cmux#31387 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
ZingerLittleBee/Heeler#601 ·
Los mantenedores suelen responder en 1 día
-
bug win11 windows アプリ: チャット 優先: 中
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
yksr-melt/Meltype#1409 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RevenueCat/purchases-ios#8171 ·
Los mantenedores suelen responder en 1 día
-
TerminalManagerPathTests: don't rely on GNU coreutils accepting a foreign argv0 (fails with Ubuntu 26.04's uutils)Posiblemente ocupada @odrobnik la tomó hoy. Abiertobug status::shipped
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Cocoanetics/SwiftACP#322 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día