Skip to content

Commit 7c088ec

Browse files
committed
Update agentic ai template
1 parent efe3087 commit 7c088ec

File tree

2 files changed

+48
-17
lines changed

2 files changed

+48
-17
lines changed

scaffolder-templates/agentic-ai-template/skeleton/src/main/resources/application.properties

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,31 @@ quarkus.websockets-next.server.auto-ping-interval=1m
6161
# OpenTelemetry & Tracing
6262
quarkus.otel.enabled=true
6363
quarkus.datasource.jdbc.telemetry=${quarkus.otel.enabled}
64-
quarkus.otel.exporter.otlp.traces.endpoint=http://otel-collector.parasol-app-${{values.owner}}-dev.svc.cluster.local:4317
64+
quarkus.otel.exporter.otlp.traces.endpoint=http://otel-collector.parasol-app-${{values.owner}}-dev.svc.cluster.local:4317
65+
66+
67+
{%- if values.ai_model == 'granite-3.1' %}
68+
quarkus.langchain4j.openai.agentic-ai.chat-model.temperature=0.3
69+
quarkus.langchain4j.openai.agentic-ai.timeout=600s
70+
quarkus.langchain4j.openai.agentic-ai.chat-model.model-name=granite-3.1
71+
quarkus.langchain4j.openai.agentic-ai.base-url=http://granite3-predictor.aiworkshop.svc.cluster.local:8080/v1
72+
{%- elseif values.ai_model == 'llama3.3' %}
73+
quarkus.langchain4j.openai.agentic-ai.chat-model.temperature=0.3
74+
quarkus.langchain4j.openai.agentic-ai.timeout=600s
75+
quarkus.langchain4j.openai.agentic-ai.chat-model.model-name=llama3.3
76+
quarkus.langchain4j.openai.agentic-ai.base-url=http://llama3-predictor.aiworkshop.svc.cluster.local:8080/v1
77+
{%- endif %}
78+
79+
{%- if values.mcp_server == 'Filesystem' %}
80+
quarkus.langchain4j.mcp.filesystem.transport-type=stdio
81+
quarkus.langchain4j.mcp.filesystem.url=${{values.file_path}}
82+
quarkus.langchain4j.mcp.filesystem.command=todo
83+
quarkus.langchain4j.mcp.filesystem.log-requests=true
84+
quarkus.langchain4j.mcp.filesystem.log-responses=true
85+
{%- elseif values.mcp_server == 'PostgreSQL' %}
86+
quarkus.langchain4j.mcp.postgresql.transport-type=stdio
87+
quarkus.langchain4j.mcp.postgresql.url=${{values.file_path}}
88+
quarkus.langchain4j.mcp.postgresql.command=todo
89+
quarkus.langchain4j.mcp.postgresql.log-requests=true
90+
quarkus.langchain4j.mcp.postgresql.log-responses=true
91+
{%- endif %}

scaffolder-templates/agentic-ai-template/template.yaml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ spec:
9696
description: Build Image tag
9797
- title: AI Models (LLMs) Information
9898
required:
99-
- ai_models
99+
- ai_model
100100
properties:
101-
ai_models:
101+
ai_model:
102102
title: AI Models
103103
description: A Collection of AI Models for Building Agentic AI Applications
104104
type: string
@@ -111,43 +111,43 @@ spec:
111111
- mistral
112112
- phi3
113113
dependencies:
114-
ai_modelss:
114+
ai_model:
115115
oneOf:
116116
- properties:
117-
ai_models:
117+
ai_model:
118118
enum:
119119
- granite-3.1
120120
model_name:
121121
title: Model Name
122122
type: string
123-
description: Name of the AI Model
123+
description: Granite-3.1 is a high-performance, open-source, distributed graph database.
124124
model_endpoint:
125125
title: Model Endpoint
126126
type: string
127127
description: AI Model Inference Service API
128128
default: http://granite3-predictor.aiworkshop.svc.cluster.local:8080/v1
129129
- properties:
130-
ai_models:
130+
ai_model:
131131
enum:
132132
- llama3.3
133133
model_name:
134134
title: Model Name
135135
type: string
136136
description: Name of the AI Model
137-
default: llama3.3
137+
default: Llama 3.3 is a powerful and advanced large language model developed by Meta AI.
138138
model_endpoint:
139139
title: Model Endpoint
140140
type: string
141141
description: AI Model Inference Service API
142142
default: http://llama3-predictor.aiworkshop.svc.cluster.local:8080/v1
143143
- properties:
144-
ai_models:
144+
ai_model:
145145
enum:
146146
- qwen2.5
147147
model_name:
148148
title: Model Name
149149
type: string
150-
description: Name of the AI Model
150+
description: Qwen-2.5 is a large language model developed by Huawei, known for its advanced capabilities in natural language understanding and generation.
151151
default: qwen2.5
152152
model_endpoint:
153153
title: Model Endpoint
@@ -156,9 +156,9 @@ spec:
156156
default: http://qwen-2-predictor.aiworkshop.svc.cluster.local:8080/v1
157157
- title: Model Context Protocol (MCP) Servers Information
158158
required:
159-
- mcp_servers
159+
- mcp_server
160160
properties:
161-
mcp_servers:
161+
mcp_server:
162162
title: Model Context Protocol (MCP) servers
163163
description: A Collection of Model Context Protocol (MCP) Examples for Building Agentic AI Applications with Large Language Models (LLMs)
164164
type: string
@@ -171,10 +171,10 @@ spec:
171171
- GoogleMaps
172172
- Memory
173173
dependencies:
174-
mcp_servers:
174+
mcp_server:
175175
oneOf:
176176
- properties:
177-
mcp_servers:
177+
mcp_server:
178178
enum:
179179
- Filesystem
180180
file_path:
@@ -183,7 +183,7 @@ spec:
183183
description: Reads complete file contents with UTF-8 encoding
184184
default: /projects/path/to/file.txt
185185
- properties:
186-
mcp_servers:
186+
mcp_server:
187187
enum:
188188
- PostgreSQL
189189
psql_host:
@@ -236,7 +236,9 @@ spec:
236236
quay_destination: {{ '${{ parameters.image_organization}}' }}/{{ '${{ parameters.component_id }}' }}
237237
port: 8080
238238
verify_commits: {{ '${{ parameters.repo.verify_commits }}' }}
239-
model: {{ '${{ parameters.model_id }}' }}
239+
ai_model: {{ '${{ parameters.ai_model }}' }}
240+
mcp_server: {{ '${{ parameters.mcp_server }}' }}
241+
file_path: {{ '${{ parameters.mcp_server.file_path }}' }}
240242

241243
- id: publish
242244
name: Publish
@@ -277,7 +279,9 @@ spec:
277279
deployment_name: quarkus-template
278280
user: {{ '${{ user.entity.metadata.name }}' }}
279281
verify_commits: {{ '${{ parameters.repo.verify_commits }}' }}
280-
model: {{ '${{ parameters.model_id }}' }}
282+
ai_model: {{ '${{ parameters.ai_model }}' }}
283+
mcp_server: {{ '${{ parameters.mcp_server }}' }}
284+
file_path: {{ '${{ parameters.mcp_server.file_path }}' }}
281285
targetPath: ./tenant-gitops
282286

283287
- id: publish-gitops

0 commit comments

Comments
 (0)