| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| # |
| # EventMesh agent configuration template. |
| # |
| # AgentApplication reads ALL config from -D system properties (NOT this file). bin/start-agent.sh |
| # translates the ENV vars below into -D flags; pass extra -D flags through AGENT_OPTS. |
| # |
| # AGENT_RUNTIME_URL -> -Dagent.runtime.url (default http://localhost:10105) |
| # AGENT_STREAM_PARENT -> -Dagent.stream.parent (default em-stream; must match the runtime's eventmesh.stream.parent) |
| # AGENT_CLIENT_ID -> -Dagent.client.id (default em-agent-<ts>) |
| # LLM_BASE_URL -> -Dllm.base.url (OpenAI-compatible; default https://api.openai.com) |
| # LLM_API_KEY -> -Dllm.api.key (Bearer token; default "") |
| # LLM_MODEL -> -Dllm.model (default gpt-4o-mini) |
| # AGENT_HEARTBEAT_FAILLIMIT -> -Dagent.heartbeat.failLimit (default 6; exits after N consecutive failures) |
| # AGENT_MAX_CONVERSATIONS -> -Dagent.conversation.maxConversations (default 1000; LRU bound) |
| # |
| # SPI-deployed custom tools (jars under plugin/agent/, META-INF/eventmesh service file): |
| # AGENT_TOOLS_SPI -> -Dagent.tools.spi (comma list of SPI names; default none) |
| # |
| # Connector tools (function calling; see docs/feature/agent-tools.md): |
| # AGENT_TOOL_SINK_<NAME>=<fqcn> sink connector exposed as a write tool |
| # AGENT_TOOL_SOURCE_<NAME>=<fqcn> source connector exposed a read tool |
| # pass connector init props via AGENT_OPTS: -Dagent.tools.props.<name>.<key>=<value> |
| # |
| # Event-driven triggers: |
| # AGENT_SUBSCRIBE_TOPICS -> -Dagent.subscribe.topics (comma list; default none) |
| # AGENT_TRIGGER_OUTPUT -> -Dagent.trigger.output.topic (default agent.triggers) |
| # |
| # Note: an empty LLM_API_KEY fails fast unless LLM_API_KEY_OPTIONAL=true is set via AGENT_OPTS. |
| # |
| # Example (real LLM): |
| # LLM_BASE_URL=https://api.openai.com LLM_API_KEY=sk-... LLM_MODEL=gpt-4o-mini \ |
| # AGENT_RUNTIME_URL=http://localhost:10105 ./bin/start-agent.sh |
| # |