File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
02-use-cases/data_analysis_with_datalake Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1717from veadk import Agent , Runner # noqa: E402
1818from veadk .auth .veauth .ark_veauth import get_ark_token # noqa: E402
1919from veadk .memory .short_term_memory import ShortTermMemory # noqa: E402
20+
21+ # Check if MODEL_AGENT_API_KEY environment variable exists and is not empty
22+ if "MODEL_AGENT_API_KEY" not in os .environ or not os .environ ["MODEL_AGENT_API_KEY" ]:
23+ os .environ ["MODEL_AGENT_API_KEY" ] = get_ark_token ()
24+
2025from veadk .tools .builtin_tools .video_generate import video_generate # noqa: E402
2126from agentkit .apps import AgentkitAgentServerApp # noqa: E402
2227
2631from tools .lancedb_hybrid_execution import lancedb_hybrid_execution # noqa: E402
2732from prompts import SYSTEM_PROMPT # noqa: E402
2833
29- # Check if MODEL_AGENT_API_KEY environment variable exists and is not empty
30- if "MODEL_AGENT_API_KEY" not in os .environ or not os .environ ["MODEL_AGENT_API_KEY" ]:
31- os .environ ["MODEL_AGENT_API_KEY" ] = get_ark_token ()
32- # Optionally assign to a variable for easier use in the file
33- MODEL_AGENT_API_KEY = os .environ ["MODEL_AGENT_API_KEY" ]
3434
3535short_term_memory = ShortTermMemory (backend = "local" )
3636
You can’t perform that action at this time.
0 commit comments